React Native Toast (remobile)
A android like toast for react-native support for ios and android
Installation
npm install react-native-toast --save
Installation (iOS)
- Drag RCTToast.xcodeproj to your project on Xcode.
- Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag libRCTToast.a from the Products folder inside the RCTToast.xcodeproj.
- Look for Header Search Paths and make sure it contains both $(SRCROOT)/../react-native/React as recursive.
Installation (Android)
...include ':react-native-toast'project(':react-native-toast').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-toast/android')
- In
android/app/build.gradle
...dependencies { ... compile project(':react-native-toast')}
- register module (in MainActivity.java)
// <--- import
Screencasts
Usage
Example
var React = ;var StyleSheet View Image = React; var Toast = ;var Button = ; moduleexports = React; var styles = StyleSheet;
HELP
thanks
- this project come from https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin