react-native-persona-inquiry
Development
To test changes to SDK, we will use the Example App in example
app.
Install dependencies for example app
We will be using this example app to test our plugin. The plugin cannot compile
on it's own and needs an example app to act as a "harness" for testing.
cd example
yarn
iOS only: Install Pods
cd ios
pod install
Android only: Ensure you have proper SDK/gradle version
Ensure you have the proper Java and Gradle version installed.
$ sdk current java
Using java version 8.0.242.hs-adpt
$ sdk current gradle
Using gradle version 5.6.4
Start metro bundler. This will bundle JS and serve it to your React Native sample app.
cd example
yarn start --reset-cache
Start example app in iOS simulator
yarn ios
Or open ios/example.xcworkspace
in XCode and build + run.
Start example app in Android simulator
yarn android
Or open the android project in Android Studio and build + run.
Installing in your own project
yarn add react-native-persona-inquiry --save
Mostly automatic installation
react-native link react-native-persona-inquiry
Usage
import PersonaInquiry from "react-native-persona-inquiry";
PersonaInquiry;