-
Notifications
You must be signed in to change notification settings - Fork 734
improve TextField example screen #618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -41,22 +41,22 @@ export default class InputsScreen extends Component { | |||
message = 'Please enter a valid text'; | |||
} | |||
this.setState({error: message}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is a dedicated screen for validations why not clean this screen from all error examples to keep it simple?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. So you want to merge it like that or after the cleanup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I'll make it more simple in the future, for now I move the error/validation examples
import {Navigation} from 'react-native-navigation'; | ||
import {KeyboardAwareInsetsView} from 'react-native-keyboard-tracking-view'; | ||
|
||
class InputValidationsScreen extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you want to add an useTopErrors
example? Maybe a toggle button to switch between the top and the bottom error like in the input screen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
I separated the text field screen to 3
This is just the initial work, but from here we can start re-arrange the input examples better.
It will also help when we'll add e2e tests