Skip to content

Instantly share code, notes, and snippets.

@ecdundar
Created February 25, 2019 07:45
Show Gist options
  • Save ecdundar/a81753e76efb843524a719edc923b56f to your computer and use it in GitHub Desktop.
Save ecdundar/a81753e76efb843524a719edc923b56f to your computer and use it in GitHub Desktop.
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