mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 00:23:26 +00:00
Fix AlertIOS Examples
Summary: This fixes the examples that are out of date. Closes https://github.com/facebook/react-native/pull/5116 Reviewed By: svcscm Differential Revision: D2800319 Pulled By: androidtrunkagent fb-gh-sync-id: da1810c6146950be4be670fc69b9da32fb266303
This commit is contained in:
parent
4866ec2767
commit
a6bca4041b
@ -46,9 +46,8 @@ exports.examples = [{
|
|||||||
'Hello World',
|
'Hello World',
|
||||||
null,
|
null,
|
||||||
[
|
[
|
||||||
{text: 'OK', onPress: (text) => console.log('OK pressed')},
|
{text: 'OK', onPress: (text) => console.log('OK pressed'), type: 'default'}
|
||||||
],
|
]
|
||||||
'default'
|
|
||||||
)}>
|
)}>
|
||||||
|
|
||||||
<View style={styles.button}>
|
<View style={styles.button}>
|
||||||
@ -64,9 +63,9 @@ exports.examples = [{
|
|||||||
'Plain Text Entry',
|
'Plain Text Entry',
|
||||||
null,
|
null,
|
||||||
[
|
[
|
||||||
{text: 'Submit', onPress: (text) => console.log('Text: ' + text)},
|
{text: 'Submit', onPress: (text) => console.log('Text: ' + text), type: 'plain-text'},
|
||||||
],
|
{text: 'Cancel', onPress: () => console.log('Cancel'), style: 'cancel'}
|
||||||
'plain-text'
|
]
|
||||||
)}>
|
)}>
|
||||||
|
|
||||||
<View style={styles.button}>
|
<View style={styles.button}>
|
||||||
@ -82,9 +81,9 @@ exports.examples = [{
|
|||||||
'Secure Text Entry',
|
'Secure Text Entry',
|
||||||
null,
|
null,
|
||||||
[
|
[
|
||||||
{text: 'Submit', onPress: (text) => console.log('Password: ' + text)},
|
{text: 'Submit', onPress: (text) => console.log('Password: ' + text), type: 'secure-text'},
|
||||||
],
|
{text: 'Cancel', onPress: () => console.log('Cancel'), style: 'cancel'}
|
||||||
'secure-text'
|
]
|
||||||
)}>
|
)}>
|
||||||
|
|
||||||
<View style={styles.button}>
|
<View style={styles.button}>
|
||||||
@ -100,9 +99,9 @@ exports.examples = [{
|
|||||||
'Login & Password',
|
'Login & Password',
|
||||||
null,
|
null,
|
||||||
[
|
[
|
||||||
{text: 'Submit', onPress: (details) => console.log('Login: ' + details.login + '; Password: ' + details.password)},
|
{text: 'Submit', onPress: (details) => console.log('Login: ' + details.login + '; Password: ' + details.password), type: 'login-password'},
|
||||||
],
|
{text: 'Cancel', onPress: () => console.log('Cancel'), style: 'cancel'}
|
||||||
'login-password'
|
]
|
||||||
)}>
|
)}>
|
||||||
|
|
||||||
<View style={styles.button}>
|
<View style={styles.button}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user