Wondering what’s next for npm?Check out our public roadmap! »

react-native-ump

1.0.1 • Public • Published

react-native-ump

A React Native component for Google User Messaging Platform SDK (Funding Choices)

Getting started

npm: $ npm install react-native-ump --save

Yarn: $ yarn add react-native-ump

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-ump and add RNUmp.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNUmp.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/[...]/MainApplication.java
  • Add import it.mondadori.RNUmpPackage; to the imports at the top of the file
  • Add new RNUmpPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-ump'
    project(':react-native-ump').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-ump/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-ump')
    

Usage

import RNUmp from 'react-native-ump';

// TODO: What to do with the module?
RNUmp;

Install

npm i react-native-ump

DownloadsWeekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

31.5 kB

Total Files

14

Last publish

Collaborators

  • avatar