Skip to content
a library that allows you to use UIReferenceLibraryViewController in react native
Objective-C Java Ruby JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android
ios
.gitattributes
.gitignore
.npmignore
README.md
index.js
package-lock.json
package.json
react-native-reference-library-view.podspec

README.md

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
  }
})
You can’t perform that action at this time.