2.0.0 • Published 3 years ago
react-native-qwary v2.0.0
react-native-qwary
Getting started
$ npm install react-native-qwary --save
Mostly automatic installation
$ react-native link react-native-qwary
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.qwary.survey.SurveyPackage;to the imports at the top of the file - Add
new SurveyPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-qwary' project(':react-native-qwary').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-qwary/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-qwary')
Usage
import Survey from 'react-native-qwary';
// TODO: What to do with the module?
Survey;