1.0.3 • Published 7 years ago
react-native-waltz-rn-test v1.0.3
react-native-waltz-rn-test
Getting started
$ npm install react-native-waltz-rn-test --save
Mostly automatic installation
$ react-native link react-native-waltz-rn-test
Manual installation
You'll need cocoapods to use this
pod init
//in Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '9.3'
# ignore all warnings from all pods
inhibit_all_warnings!
source 'https://github.com/WaltzApp/Podspecs.git'
source 'https://github.com/CocoaPods/Specs.git'
target 'waltzTest' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
pod 'WaltzAccess', :inhibit_warnings => true
endiOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-waltz-rn-testand addRNWaltzRnTest.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNWaltzRnTest.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)< 5. Remove test target*
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNWaltzRnTestPackage;to the imports at the top of the file - Add
new RNWaltzRnTestPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-waltz-rn-test' project(':react-native-waltz-rn-test').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-waltz-rn-test/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-waltz-rn-test')
Windows
- In Visual Studio add the
RNWaltzRnTest.slninnode_modules/react-native-waltz-rn-test/windows/RNWaltzRnTest.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Waltz.Rn.Test.RNWaltzRnTest;to the usings at the top of the file - Add
new RNWaltzRnTestPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNWaltzRnTest from 'react-native-waltz-rn-test';
// TODO: What to do with the module?
RNWaltzRnTest;