Created
February 25, 2019 07:45
-
-
Save ecdundar/a81753e76efb843524a719edc923b56f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { View, TextInput } from 'react-native'; | |
const BBTextInput = props => { | |
return ( | |
<View | |
style={{ | |
marginLeft: 35, | |
marginRight: 35, | |
marginTop: 10, | |
borderColor: '#007FFF', | |
borderWidth: 1, | |
}}> | |
<TextInput | |
underlineColorAndroid="transparent" | |
placeholder={props.placeholder} | |
placeholderTextColor="#007FFF" | |
keyboardType={props.keyboardType} | |
onChangeText={props.onChangeText} | |
returnKeyType={props.returnKeyType} | |
numberOfLines={props.numberOfLines} | |
multiline={props.multiline} | |
onSubmitEditing={props.onSubmitEditing} | |
style={props.style} | |
blurOnSubmit={false} | |
value={props.value} | |
/> | |
</View> | |
); | |
}; | |
export default BBTextInput; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment