diff --git a/RNTester/js/TextInputExample.macos.js b/RNTester/js/TextInputExample.macos.js
index ff5f2ac753..e3468c0760 100644
--- a/RNTester/js/TextInputExample.macos.js
+++ b/RNTester/js/TextInputExample.macos.js
@@ -11,7 +11,7 @@
'use strict';
const Button = require('Button');
-const InputAccessoryView = require('InputAccessoryView');
+// const InputAccessoryView = require('InputAccessoryView');
const React = require('react');
const ReactNative = require('react-native');
const {Text, TextInput, View, StyleSheet, Slider, Switch, Alert} = ReactNative;
@@ -91,37 +91,37 @@ class TextEventsExample extends React.Component<{}, $FlowFixMeState> {
}
}
-class TextInputAccessoryViewExample extends React.Component<{}, *> {
- /* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
- * error found when Flow v0.85 was deployed. To see the error, delete this
- * comment and run Flow. */
- constructor(props) {
- super(props);
- this.state = {text: 'Placeholder Text'};
- }
-
- render() {
- const inputAccessoryViewID = 'inputAccessoryView1';
- return (
-
- this.setState({text})}
- value={this.state.text}
- />
-
-
-
-
-
- );
- }
-}
+// class TextInputAccessoryViewExample extends React.Component<{}, *> {
+// /* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
+// * error found when Flow v0.85 was deployed. To see the error, delete this
+// * comment and run Flow. */
+// constructor(props) {
+// super(props);
+// this.state = {text: 'Placeholder Text'};
+// }
+//
+// render() {
+// const inputAccessoryViewID = 'inputAccessoryView1';
+// return (
+//
+// this.setState({text})}
+// value={this.state.text}
+// />
+//
+//
+//
+//
+//
+// );
+// }
+// }
class RewriteExample extends React.Component<$FlowFixMeProps, any> {
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
@@ -206,49 +206,25 @@ class RewriteExampleKana extends React.Component<$FlowFixMeProps, any> {
}
}
-class SecureEntryExample extends React.Component<$FlowFixMeProps, any> {
+class PasswordExample extends React.Component<$FlowFixMeProps, any> {
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
* error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
- this.state = {
- text: '',
- password: '',
- isSecureTextEntry: true,
- };
+ this.state = {text: ''};
}
render() {
return (
this.setState({text})}
value={this.state.text}
/>
Current text is: {this.state.text}
-
- this.setState({password: text})}
- secureTextEntry={this.state.isSecureTextEntry}
- value={this.state.password}
- />
- {
- this.setState({isSecureTextEntry: value});
- }}
- style={{marginLeft: 4}}
- value={this.state.isSecureTextEntry}
- />
-
);
}
@@ -762,9 +738,9 @@ exports.examples = [
},
},
{
- title: 'Secure text entry',
+ title: 'Password',
render: function() {
- return ;
+ return ;
},
},
{
@@ -937,13 +913,6 @@ exports.examples = [
multiline={true}
style={styles.multiline}
/>
-
);
},