Bumped example to 0.7.0-rc.2.

This commit is contained in:
Joel Arvidsson 2015-07-19 13:36:40 +02:00
parent 2ddb633255
commit 9f88cce0b8
2 changed files with 10 additions and 10 deletions

View File

@ -14,7 +14,7 @@ var {
TouchableHighlight,
} = React;
var Keychain = require('Keychain');
var Keychain = require('react-native-keychain');
var KeychainExample = React.createClass({
getInitialState: function() {
@ -67,20 +67,20 @@ var KeychainExample = React.createClass({
</Text>
<View style={styles.field}>
<Text style={styles.label}>Username</Text>
<TextInput
style={styles.input}
autoFocus={true}
autoCapitalize="none"
<TextInput
style={styles.input}
autoFocus={true}
autoCapitalize="none"
value={this.state.username}
onChange={(event) => this.setState({ username: event.nativeEvent.text })}
/>
</View>
<View style={styles.field}>
<Text style={styles.label}>Password</Text>
<TextInput
style={styles.input}
password={true}
autoCapitalize="none"
<TextInput
style={styles.input}
password={true}
autoCapitalize="none"
value={this.state.password}
onChange={(event) => this.setState({ password: event.nativeEvent.text })}
/>

View File

@ -6,7 +6,7 @@
"start": "node_modules/react-native/packager/packager.sh"
},
"dependencies": {
"react-native": "^0.4.4",
"react-native": "^0.7.0-rc.2",
"react-native-keychain": "file:../"
}
}