Skip to content

Commit

Permalink
Fix AlertIOS Examples
Browse files Browse the repository at this point in the history
Summary:
This fixes the examples that are out of date.
Closes facebook#5116

Reviewed By: svcscm

Differential Revision: D2800319

Pulled By: androidtrunkagent

fb-gh-sync-id: da1810c6146950be4be670fc69b9da32fb266303
  • Loading branch information
jamesfzhang authored and facebook-github-bot-7 committed Jan 4, 2016
1 parent 4866ec2 commit a6bca40
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Examples/UIExplorer/AlertIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ exports.examples = [{
'Hello World',
null,
[
{text: 'OK', onPress: (text) => console.log('OK pressed')},
],
'default'
{text: 'OK', onPress: (text) => console.log('OK pressed'), type: 'default'}
]
)}>

<View style={styles.button}>
Expand All @@ -64,9 +63,9 @@ exports.examples = [{
'Plain Text Entry',
null,
[
{text: 'Submit', onPress: (text) => console.log('Text: ' + text)},
],
'plain-text'
{text: 'Submit', onPress: (text) => console.log('Text: ' + text), type: 'plain-text'},
{text: 'Cancel', onPress: () => console.log('Cancel'), style: 'cancel'}
]
)}>

<View style={styles.button}>
Expand All @@ -82,9 +81,9 @@ exports.examples = [{
'Secure Text Entry',
null,
[
{text: 'Submit', onPress: (text) => console.log('Password: ' + text)},
],
'secure-text'
{text: 'Submit', onPress: (text) => console.log('Password: ' + text), type: 'secure-text'},
{text: 'Cancel', onPress: () => console.log('Cancel'), style: 'cancel'}
]
)}>

<View style={styles.button}>
Expand All @@ -100,9 +99,9 @@ exports.examples = [{
'Login & Password',
null,
[
{text: 'Submit', onPress: (details) => console.log('Login: ' + details.login + '; Password: ' + details.password)},
],
'login-password'
{text: 'Submit', onPress: (details) => console.log('Login: ' + details.login + '; Password: ' + details.password), type: 'login-password'},
{text: 'Cancel', onPress: () => console.log('Cancel'), style: 'cancel'}
]
)}>

<View style={styles.button}>
Expand Down

0 comments on commit a6bca40

Please sign in to comment.