react-native-mpremotecommandcenter
v1.0.8
Published
Control iOS command center with React Native
Downloads
13
Readme
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
Libraries
and clickAdd Files to "Your Project Name"
Look undernode_modules/react-native-mpremotecommandcenter
and addRNMPRemoteCommandCenter.xcodeproj
. - Add
libRNMPRemoteCommandCenter.a
toBuild Phases -> Link Binary With Libraries
- Click on
RNMPRemoteCommandCenter.xcodeproj
inLibraries
and go theBuild Settings
tab. Double click the text to the right ofHeader Search Paths
and 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 theRNMPRemoteCommandCenter
source files are referring to by pointing to the header files installed within thereact-native
node_modules
directory. - Whenever you want to use it within React code now you can:
var LinearGradient = require('react-native-mpremotecommandcenter');
Examples
Simple
License
License is MIT