Files
react-native/Libraries
Kyle Corbitt ba4101dc4a Simplified AlertIOS
Summary:
Ok, so this started as fixing #5273 but ended up getting a little more complicated. 😄

Currently, AlertIOS has the following API:

* `alert(title, message, buttons, type)`
* `prompt(title, defaultValue, buttons, callback)`

I've changed the API to look like the following:

* `alert(title, message, callbackOrButtons)`
* `prompt(title, message, callbackOrButtons, type, defaultValue)`

I know that breaking changes are a big deal, but I find the current alert API to be fairly inconsistent and unnecessarily confusing. I'll try to justify my changes one by one:

1. Currently `type` is an optional parameter of `alert`. However, the only reason to change the alert type from the default is in order to create one of the input dialogs (text, password or username/password). So we're in a weird state where if you want a normal text input, you use `prompt`, but if you want a password input you use `alert` with the 'secure-text' type. I've moved `type` to `prompt` so all text input is now done with `pro
Closes https://github.com/facebook/react-native/pull/5286

Reviewed By: svcscm

Differential Revision: D2850400

Pulled By: androidtrunkagent

fb-gh-sync-id: 2986cfa2266225df7e4dcd703fce1e322c12b816
2016-01-21 10:57:26 -08:00
..
2015-07-24 08:41:58 -08:00
2016-01-06 10:33:29 -08:00
2016-01-08 15:42:32 -08:00
2016-01-12 03:11:31 -08:00
2015-12-23 10:08:38 -08:00
2016-01-20 15:14:31 -08:00
2015-12-18 17:04:29 -08:00
2015-12-03 09:10:29 -08:00
2016-01-15 05:15:31 -08:00
2016-01-14 14:04:34 -08:00
2016-01-21 10:57:26 -08:00
2015-07-24 08:41:58 -08:00