mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-09 22:50:21 +08:00
Use UIAlertController when available in AlertIOS
Reviewed By: nicklockwood Differential Revision: D2579164 fb-gh-sync-id: 310361585f8380429b631194147553d014ca5076
This commit is contained in:
committed by
facebook-github-bot-6
parent
fe42a28de1
commit
cf0a28265a
@@ -132,7 +132,7 @@ class PromptExample extends React.Component {
|
||||
|
||||
<TouchableHighlight
|
||||
style={styles.wrapper}
|
||||
onPress={this.prompt.bind(this, this.title, this.promptResponse)}>
|
||||
onPress={this.prompt.bind(this, this.title, null, null, this.promptResponse)}>
|
||||
|
||||
<View style={styles.button}>
|
||||
<Text>
|
||||
@@ -143,7 +143,7 @@ class PromptExample extends React.Component {
|
||||
|
||||
<TouchableHighlight
|
||||
style={styles.wrapper}
|
||||
onPress={this.prompt.bind(this, this.title, this.buttons)}>
|
||||
onPress={this.prompt.bind(this, this.title, null, this.buttons, null)}>
|
||||
|
||||
<View style={styles.button}>
|
||||
<Text>
|
||||
@@ -154,7 +154,7 @@ class PromptExample extends React.Component {
|
||||
|
||||
<TouchableHighlight
|
||||
style={styles.wrapper}
|
||||
onPress={this.prompt.bind(this, this.title, this.defaultValue, this.promptResponse)}>
|
||||
onPress={this.prompt.bind(this, this.title, this.defaultValue, null, this.promptResponse)}>
|
||||
|
||||
<View style={styles.button}>
|
||||
<Text>
|
||||
@@ -165,7 +165,7 @@ class PromptExample extends React.Component {
|
||||
|
||||
<TouchableHighlight
|
||||
style={styles.wrapper}
|
||||
onPress={this.prompt.bind(this, this.title, this.defaultValue, this.buttons)}>
|
||||
onPress={this.prompt.bind(this, this.title, this.defaultValue, this.buttons, null)}>
|
||||
|
||||
<View style={styles.button}>
|
||||
<Text>
|
||||
|
||||
Reference in New Issue
Block a user