GitHub - jktzes/react-native-reference-library-view: a library that allows you to use UIReferenceLibraryViewController in react native

1 min read Original article ↗

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

react-native-reference-library-view

Demo

Demo

Getting started

$ npm install react-native-reference-library-view --save

Mostly automatic installation

$ react-native link react-native-reference-library-view

Usage

import ReferenceLibraryView from 'react-native-reference-library-view'

ReferenceLibraryView.showDefinitionForTerm(word, (hasDefinition) => {
  // Dictionary modal will show regardless of hasDefinition result
  if (!hasDefinition) {
    //callback when no definition available
  } else {
    // callback when definition available
  }
})

About

a library that allows you to use UIReferenceLibraryViewController in react native

Resources

Readme

Activity

Stars

12 stars

Watchers

1 watching

Forks

1 fork