@peppas/topic
v0.0.1
Published
topic
Downloads
4
Readme
@peppas/react-native-topic
Getting started
$ npm install @peppas/react-native-topic --save
Mostly automatic installation
$ react-native link @peppas/react-native-topic
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜@peppas/react-native-topic
and addRNTopic.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNTopic.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.peppas.imagepicker.RNTopicPackage;
to the imports at the top of the file - Add
new RNTopicPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':@peppas/react-native-topic' project(':@peppas/react-native-topic').projectDir = new File(rootProject.projectDir, '../node_modules/@peppas/react-native-topic/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':@peppas/react-native-topic')
Usage
import RNTopic from '@peppas/react-native-topic';
// TODO: What to do with the module?
RNTopic;