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

View File

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