react-native-world-crypto-currency
v1.0.8
Published
`$ npm install react-native-world-crypto-currency --save`
Downloads
216
Readme
react-native-world-crypto-currency
Getting started
$ npm install react-native-world-crypto-currency --save
Mostly automatic installation
$ react-native link react-native-world-crypto-currency
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-world-crypto-currency
and addRNWorldCryptoCurrency.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNWorldCryptoCurrency.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNWorldCryptoCurrencyPackage;
to the imports at the top of the file - Add
new RNWorldCryptoCurrencyPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-world-crypto-currency' project(':react-native-world-crypto-currency').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-world-crypto-currency/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-world-crypto-currency')
Windows
- In Visual Studio add the
RNWorldCryptoCurrency.sln
innode_modules/react-native-world-crypto-currency/windows/RNWorldCryptoCurrency.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Com.Reactlibrary.RNWorldCryptoCurrency;
to the usings at the top of the file - Add
new RNWorldCryptoCurrencyPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNWorldCryptoCurrency from 'react-native-world-crypto-currency';
// TODO: What to do with the module?
RNWorldCryptoCurrency;