You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,11 @@ Please make sure the following is done when submitting a pull request:
96
96
97
97
1. Fork [the repository](https://github.com/facebook/react-native) and create your branch from `master`.
98
98
2. Add the copyright notice to the top of any new files you've added.
99
-
3. Describe your [**test plan**](/react-native/docs/contributing.html#test-plan) in your pull request description. Make sure to [test your changes](/react-native/docs/testing.html)!
99
+
3. Describe your [**test plan**](https://facebook.github.io/react-native/docs/contributing.html#test-plan) in your pull request description. Make sure to [test your changes](https://facebook.github.io/react-native/docs/testing.html)!
100
100
4. Make sure your code lints (`npm run lint`).
101
101
5. If you haven't already, [sign the CLA](https://code.facebook.com/cla).
102
102
103
-
All pull requests should be opened against the `master` branch. After opening your pull request, ensure [**all tests pass**](/react-native/docs/contributing.html#contrinuous-integration-tests) on Circle CI. If a test fails and you believe it is unrelated to your change, leave a comment on the pull request explaining why.
103
+
All pull requests should be opened against the `master` branch. After opening your pull request, ensure [**all tests pass**](https://facebook.github.io/react-native/docs/contributing.html#contrinuous-integration-tests) on Circle CI. If a test fails and you believe it is unrelated to your change, leave a comment on the pull request explaining why.
104
104
105
105
> **Note:** It is not necessary to keep clicking `Merge master to your branch` on the PR page. You would want to merge master if there are conflicts or tests are failing. The Facebook-GitHub-Bot ultimately squashes all commits to a single one before merging your PR.
106
106
@@ -116,7 +116,7 @@ See [What is a Test Plan?](https://medium.com/@martinkonicek/what-is-a-test-plan
116
116
117
117
#### Continuous integration tests
118
118
119
-
Make sure all **tests pass** on [Circle CI][circle]. PRs that break tests are unlikely to be merged. Learn more about [testing your changes here](/react-native/docs/testing.html).
119
+
Make sure all **tests pass** on [Circle CI][circle]. PRs that break tests are unlikely to be merged. Learn more about [testing your changes here](https://facebook.github.io/react-native/docs/testing.html).
Copy file name to clipboardExpand all lines: Libraries/Alert/AlertIOS.js
+5-90Lines changed: 5 additions & 90 deletions
Original file line number
Diff line number
Diff line change
@@ -77,60 +77,15 @@ export type ButtonsArray = Array<{
77
77
}>;
78
78
79
79
/**
80
-
* @description
81
-
* `AlertIOS` provides functionality to create an iOS alert dialog with a
82
-
* message or create a prompt for user input.
83
-
*
84
-
* Creating an iOS alert:
85
-
*
86
-
* ```
87
-
* AlertIOS.alert(
88
-
* 'Sync Complete',
89
-
* 'All your data are belong to us.'
90
-
* );
91
-
* ```
92
-
*
93
-
* Creating an iOS prompt:
94
-
*
95
-
* ```
96
-
* AlertIOS.prompt(
97
-
* 'Enter a value',
98
-
* null,
99
-
* text => console.log("You entered "+text)
100
-
* );
101
-
* ```
102
-
*
103
-
* We recommend using the [`Alert.alert`](docs/alert.html) method for
104
-
* cross-platform support if you don't need to create iOS-only prompts.
80
+
* Use `AlertIOS` to display an alert dialog with a message or to create a prompt for user input on iOS. If you don't need to prompt for user input, we recommend using `Alert.alert() for cross-platform support.
105
81
*
82
+
* See http://facebook.github.io/react-native/docs/alertios.html
106
83
*/
107
84
classAlertIOS{
108
85
/**
109
86
* Create and display a popup alert.
110
-
* @static
111
-
* @method alert
112
-
* @param title The dialog's title. Passing null or '' will hide the title.
113
-
* @param message An optional message that appears below
114
-
* the dialog's title.
115
-
* @param callbackOrButtons This optional argument should
116
-
* be either a single-argument function or an array of buttons. If passed
117
-
* a function, it will be called when the user taps 'OK'.
118
-
*
119
-
* If passed an array of button configurations, each button should include
120
-
* a `text` key, as well as optional `onPress` and `style` keys. `style`
121
-
* should be one of 'default', 'cancel' or 'destructive'.
122
-
* @param type Deprecated, do not use.
123
87
*
124
-
* @example <caption>Example with custom buttons</caption>
125
-
*
126
-
* AlertIOS.alert(
127
-
* 'Update available',
128
-
* 'Keep your app up to date to enjoy the latest features',
0 commit comments