1.0.8 • Published 10 years ago
react-native-mpremotecommandcenter v1.0.8
react-native-mpremotecommandcenter
Add it to your project
You can use rnpm to add native dependencies automatically:
$ rnpm link
or do it manually as described below:
iOS
- Run
npm install react-native-mpremotecommandcenter --save - Open your project in XCode, right click on
Librariesand clickAdd Files to "Your Project Name"Look undernode_modules/react-native-mpremotecommandcenterand addRNMPRemoteCommandCenter.xcodeproj. - Add
libRNMPRemoteCommandCenter.atoBuild Phases -> Link Binary With Libraries - Click on
RNMPRemoteCommandCenter.xcodeprojinLibrariesand go theBuild Settingstab. Double click the text to the right ofHeader Search Pathsand verify that it has$(SRCROOT)/../react-native/React- if it isn't, then add it. This is so XCode is able to find the headers that theRNMPRemoteCommandCentersource files are referring to by pointing to the header files installed within thereact-nativenode_modulesdirectory. - Whenever you want to use it within React code now you can:
var LinearGradient = require('react-native-mpremotecommandcenter');
Examples
Simple
License
License is MIT