(TBD): update this readme file
$ npm install react-native-phpfox-config --save
$ react-native link react-native-phpfox-config
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-phpfox-config
and addRNPhpfoxConfig.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNPhpfoxConfig.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.RNPhpfoxConfigPackage;
to the imports at the top of the file - Add
new RNPhpfoxConfigPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-phpfox-config' project(':react-native-phpfox-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-phpfox-config/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-phpfox-config')
- In Visual Studio add the
RNPhpfoxConfig.sln
innode_modules/react-native-phpfox-config/windows/RNPhpfoxConfig.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Phpfox.Config.RNPhpfoxConfig;
to the usings at the top of the file - Add
new RNPhpfoxConfigPackage()
to theList<IReactPackage>
returned by thePackages
method
import RNPhpfoxConfig from 'react-native-phpfox-config';
// TODO: What to do with the module?
RNPhpfoxConfig;