@rshtg/react-native-pasteboard
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

react-native-react-native-pasteboard

Getting started

$ npm install react-native-react-native-pasteboard --save

Mostly automatic installation

$ react-native link react-native-react-native-pasteboard

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-react-native-pasteboard and add RNReactNativePasteboard.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNReactNativePasteboard.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 org.gabaydullov.instagram-pasteboard.RNReactNativePasteboardPackage; to the imports at the top of the file
  • Add new RNReactNativePasteboardPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-react-native-pasteboard'
    project(':react-native-react-native-pasteboard').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-react-native-pasteboard/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-react-native-pasteboard')
    

Usage

import RNReactNativePasteboard from 'react-native-react-native-pasteboard';

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

Package Sidebar

Install

npm i @rshtg/react-native-pasteboard

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

19.3 kB

Total Files

15

Last publish

Collaborators

  • rshtg