react-native-xiao2macf-toast-ui
v1.0.3
Published
common component library for android and iOS
Downloads
2
Readme
react-native-xiao2macf-toast-ui
Getting started
$ npm install react-native-xiao2macf-toast-ui --save
Mostly automatic installation
$ react-native link react-native-xiao2macf-toast-ui
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-xiao2macf-toast-ui
and addRNXiao2macfToastUi.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNXiao2macfToastUi.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.xiao2macf.ui.RNXiao2macfToastUiPackage;
to the imports at the top of the file - Add
new RNXiao2macfToastUiPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-xiao2macf-toast-ui' project(':react-native-xiao2macf-toast-ui').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-xiao2macf-toast-ui/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-xiao2macf-toast-ui')
Usage
import RNXiao2macfToastUi from 'react-native-xiao2macf-toast-ui';
// TODO: What to do with the module?
RNXiao2macfToastUi;