JSPM

react-native-rntflite

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q26450F
    • License MIT

    Package Exports

    • react-native-rntflite

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-rntflite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    react-native-tf-lite

    Getting started

    $ npm install react-native-tf-lite --save

    Mostly automatic installation

    $ react-native link react-native-tf-lite

    Manual installation

    iOS

    1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
    2. Go to node_modulesreact-native-tf-lite and add RNTfLite.xcodeproj
    3. In XCode, in the project navigator, select your project. Add libRNTfLite.a to your project's Build PhasesLink Binary With Libraries
    4. Run your project (Cmd+R)<

    Android

    1. Open up android/app/src/main/java/[...]/MainActivity.java
    • Add import com.pmcs.tf-lite.RNTfLitePackage; to the imports at the top of the file
    • Add new RNTfLitePackage() to the list returned by the getPackages() method
    1. Append the following lines to android/settings.gradle:
      include ':react-native-tf-lite'
      project(':react-native-tf-lite').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-tf-lite/android')
    2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-tf-lite')

    Usage

    import RNTfLite from 'react-native-tf-lite';
    
    // TODO: What to do with the module?
    RNTfLite;