We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06c7895 commit 28ae093Copy full SHA for 28ae093
SampleApp/javascript/js/SettingsTab.js
@@ -52,6 +52,7 @@ class SettingsTab extends Component {
52
}
53
renderLoggedOut() {
54
console.log("renderLoggedOut");
55
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
56
return (React.createElement(View, { style: styles.emailContainer },
57
React.createElement(TextInput, { value: this.state.email, style: styles.emailTextInput, autoCapitalize: "none", autoCompleteType: emailRegex.test(this.state.email) ? "email" : "none", onChangeText: (text) => this.setState({ isLoggedIn: false, email: text }), placeholder: "[email protected]/userId" }),
58
React.createElement(Button, { title: "Login", onPress: this.onLoginTapped })));
0 commit comments