Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
Tanguy Antoine edited this page May 18, 2016 · 4 revisions

Welcome to the react-native-music-control wiki!

Dev workflow for creating a RN module

1/ Create a library with RN cli*

react-native new-library MusicControl

This will create a MusicControl folder into RN Library folder.

Loclation: node_modules/react-native/Library/MusicControl

2/ Version this Module

Go to this created folder then version it

3/ Using development module (Library)

iOS

  1. Remove previous reference of this (5 Removing module reference)
  2. Open your XCode project
  3. Add MusicControl.xcodeproj (node_modules/react-native/Library/MusicControl) under Library folder of your RN app project
  4. Add libMusicControl.a, into app settings : Build Phases > Link Binary With Libraries click + then search and add libMusicControl. (If you forget this step your component will not be loaded into NativeModules of React Native)

Android

TODO

4/ Using production module (node_modules)

TODO

5/ Removing module reference

iOS

Android

TODO

Clone this wiki locally