$ npm install react-native-focus-the-love-story --save
$ react-native link react-native-focus-the-love-story
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-focus-the-love-story
and addRNFocusTheLoveStory.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNFocusTheLoveStory.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNFocusTheLoveStoryPackage;
to the imports at the top of the file - Add
new RNFocusTheLoveStoryPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-focus-the-love-story' project(':react-native-focus-the-love-story').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-focus-the-love-story/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-focus-the-love-story')
- In Visual Studio add the
RNFocusTheLoveStory.sln
innode_modules/react-native-focus-the-love-story/windows/RNFocusTheLoveStory.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Focus.The.Love.Story.RNFocusTheLoveStory;
to the usings at the top of the file - Add
new RNFocusTheLoveStoryPackage()
to theList<IReactPackage>
returned by thePackages
method
import RNFocusTheLoveStory from 'react-native-focus-the-love-story';
// TODO: What to do with the module?
RNFocusTheLoveStory;