react-native-date
React Native date and time pickers for Android
Installation and How to use
Step 1 - NPM Install
npm install --save react-native-date
Step 2 - Update Gradle Settings
// file: android/settings.gradle... include ':reactdate', ':app'project(':reactdate').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-date')
Step 3 - Update app Gradle Build
// file: android/app/build.gradle... dependencies { ... compile project(':reactdate')}
Step 4 - Register React Package
// file: android/app/source/main/java/com/{projectName}.MainActivity.java ... // import
Step 5 - Require and use in Javascript
// file: index.android.js var React = ;var AppRegistryStyleSheetTextViewTouchableOpacityNativeModules = React; var AwesomeProject = React; var styles = StyleSheet; AppRegistry;
Notes
- Please report any issues or send patches to get fixes in