Last active
January 28, 2020 11:13
-
-
Save pavsidhu/31e5c8360a464f01715b44f46bcaa408 to your computer and use it in GitHub Desktop.
Validate.js with React Native text input
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, Text } from 'react-native' | |
const TextField = props => ( | |
<View> | |
<TextInput/> | |
{props.error && <Text>{props.error}</Text>} | |
</View> | |
) | |
export default TextField |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just fixed the issue!