0.0.0 • Published 5 years ago
react-native-compose v0.0.0
react-native-compose
Compose text messages and emails from within React Native apps
Installation
$ npm install react-native-compose --save
Mostly automatic installation
$ react-native link react-native-compose
Manual installation
iOS
- Add to your Podfile: 
pod 'react-native-compose', :path => '../node_modules/react-native-compose
Android
- Open up android/app/src/main/java/[...]/MainActivity.java
- Add import com.reactlibrary.FJCComposePackage;to the imports at the top of the file
- Add new FJCComposePackage()to the list returned by thegetPackages()method
- Append the following lines to android/settings.gradle:include ':react-native-compose' project(':react-native-compose').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-compose/android')
- Insert the following lines inside the dependencies block in android/app/build.gradle:implementation project(':react-native-compose')
Usage
import RNCompose from 'react-native-compose';
// TODO: What to do with the module?
RNCompose;License
react-native-compose is available under the MIT license. See the LICENSE file for more info.