@tecnavia/react-native-dfp (1.6.0)
Published 2024-12-30 09:23:42 +00:00 by naquilini
Installation
@tecnavia:registry=
npm install @tecnavia/react-native-dfp@1.6.0
"@tecnavia/react-native-dfp": "1.6.0"
About this package
react-native-dfp
Getting started
$ npm install react-native-dfp --save
Mostly automatic installation
$ react-native link react-native-dfp
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-dfp
and addRNDfp.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNDfp.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.RNDfpPackage;
to the imports at the top of the file - Add
new RNDfpPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-dfp' project(':react-native-dfp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-dfp/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-dfp')
Windows
- In Visual Studio add the
RNDfp.sln
innode_modules/react-native-dfp/windows/RNDfp.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Dfp.RNDfp;
to the usings at the top of the file - Add
new RNDfpPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNDfp from 'react-native-dfp';
// TODO: What to do with the module?
RNDfp;
Dependencies
Development Dependencies
ID | Version |
---|---|
react-native-builder-bob | ^0.20.0 |
Peer Dependencies
ID | Version |
---|---|
prop-types | ^15.6.2 |
react | ^16.6.0 |
react-native | ^0.41.2 |
react-native-windows | 0.41.0-rc.1 |
Keywords
react-native