@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

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-dfp and add RNDfp.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNDfp.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. 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 the getPackages() method
  1. 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')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-dfp')
    

Windows

Read it! :D

  1. In Visual Studio add the RNDfp.sln in node_modules/react-native-dfp/windows/RNDfp.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Dfp.RNDfp; to the usings at the top of the file
  • Add new RNDfpPackage() to the List<IReactPackage> returned by the Packages 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
Details
npm
2024-12-30 09:23:42 +00:00
14
Tecnavia
BSD-2-Clause
latest
17 KiB
Assets (1)
Versions (1) View all
1.6.0 2024-12-30