Expo Reference Lib (Word Dictionary)

Use IOS lookup and Android define by given string

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-05-19.at.22.25.18.mp4

Support

  • IOS - use UIReferenceLibraryViewController

  • Android - use android.content.Intent.ACTION_DEFINE

  • Expo

Installation

Using npm

npm i expo-reference-lib

Using yarn

yarn add expo-reference-lib

Usage

import * as ExpoReferenceLib from "expo-reference-lib";

ExpoReferenceLib.presentReferenceLibraryAsync("Utopia");
ExpoReferenceLib.dismissReferenceLibraryAsync(); // IOS only, close lookup modal