1.0.3 • Published 2 years ago
react-native-date-time-merge-input v1.0.3
react-native-date-time-merge-input
react-native-date-time-merge-input is a plugin to merge both date and time at ease, thus increasing flexibility to use any where in the component. in this component we can also pass text style in params.
Getting started
$ npm install react-native-date-time-merge-input --save
$ yarn add react-native-date-time-merge-input
To use this dependency in your project, the following packages are needed. 1. 'react' 2. 'react-native'
Mostly automatic installation
Usage (Example of react-native-date-time-merge-input )
import React, {Component} from 'react';
import {View} from 'react-native';
import DTMergeInput from 'react-native-date-time-merge-input';
/*
npm install react-native-date-time-merge-input
*/
export default class App extends Component{
constructor(props){
super();
}
render(){
return (
<View>
<DTMergeInput getValue ={(e)=>
console.log(e);
}/>
</View>
);
}
}
// TODO: What to do with the module?
DTMergeInput;
required Props and its datatypes :
required Props and its datatypes :
- style : any text styles
- mode : "date", "date-time"
- value : value of input
- getValue : funtion()
Credit goes to :
- 'react'
- 'react-native'
Contribution :
if you like my work 😀 u can contribute using vpa : krishna.santho08@okaxis
it will be a great support to me ☺.