David Aurelio
6c55d5b851
Replace custom rolled stable string hashing with library
...
Reviewed By: cpojer
Differential Revision: D2937202
fb-gh-sync-id: dc08547c71da2bc35cfad108e63fd5e87f0ba734
shipit-source-id: dc08547c71da2bc35cfad108e63fd5e87f0ba734
2016-02-15 06:59:01 -08:00
David Aurelio
d7e5392139
Remove test for missing feature
...
Reviewed By: cpojer
Differential Revision: D2937175
fb-gh-sync-id: 7c348018918a509e1cd681dfa8df9151b94ce765
shipit-source-id: 7c348018918a509e1cd681dfa8df9151b94ce765
2016-02-15 06:33:31 -08:00
Mateusz Zatorski
3ae99d0fea
replace require with es6 import in docs
...
Reviewed By: svcscm
Differential Revision: D2936839
fb-gh-sync-id: 7a921709a37de5e9aadf324d5438d51851326348
shipit-source-id: 7a921709a37de5e9aadf324d5438d51851326348
2016-02-14 15:03:34 -08:00
David Young-chan Kay
2260d900d4
Added guide for getting started on Linux.
...
Reviewed By: svcscm
Differential Revision: D2936728
fb-gh-sync-id: ead3daf31b624e096b12fa8db892724667e87f51
shipit-source-id: ead3daf31b624e096b12fa8db892724667e87f51
2016-02-14 10:36:32 -08:00
Konstantin Raev
1463970f43
fixed a link to android setup docs
...
Reviewed By: svcscm
Differential Revision: D2936714
fb-gh-sync-id: fe97ee55cb5bf5ba736e0e5aa64462e5893a77c8
shipit-source-id: fe97ee55cb5bf5ba736e0e5aa64462e5893a77c8
2016-02-14 09:40:34 -08:00
Adam Miskiewicz
75869519e6
Add npm-shrinkwrap.json to npm
...
Reviewed By: svcscm
Differential Revision: D2933826
fb-gh-sync-id: 48def92bfd9eb929cc092bea90bcbe1ed53f8675
shipit-source-id: 48def92bfd9eb929cc092bea90bcbe1ed53f8675
2016-02-13 15:28:32 -08:00
Ahmed El-Helw
dfacb6c8f2
Fix TextInput in React Nodes
...
Reviewed By: dkoroskin
Differential Revision: D2930800
fb-gh-sync-id: 072d573b29061fb61744a20a459292e271998e8d
shipit-source-id: 072d573b29061fb61744a20a459292e271998e8d
2016-02-12 20:17:30 -08:00
Spencer Ahrens
1c507e6291
return remover function when adding NetInfo listener
...
Reviewed By: dmmiller
Differential Revision: D2931623
fb-gh-sync-id: d67e986e2b4a503c0966a3f90788e207c452f216
shipit-source-id: d67e986e2b4a503c0966a3f90788e207c452f216
2016-02-12 18:09:29 -08:00
Eric Vicenti
1beced56c8
Navigation TicTacToe Example
...
Reviewed By: hedgerwang
Differential Revision: D2931575
fb-gh-sync-id: a60509315da4732d67b9b30bfc61f6d6a16be234
shipit-source-id: a60509315da4732d67b9b30bfc61f6d6a16be234
2016-02-12 15:38:57 -08:00
Brent Vatne
e9f2ff0ee1
Add NavigationExperimental to UIExplorer on Android too
...
Reviewed By: svcscm
Differential Revision: D2933949
fb-gh-sync-id: fab82a3f15813efb3dfdbce56c7e3e0473d8c899
shipit-source-id: fab82a3f15813efb3dfdbce56c7e3e0473d8c899
2016-02-12 15:07:36 -08:00
Konstantin Raev
dec5469853
fixes next version being added to versions.html when master branch is…
...
Reviewed By: svcscm
Differential Revision: D2933806
fb-gh-sync-id: 65faeff07de53539f4a68b1d8811969f9fa8b996
shipit-source-id: 65faeff07de53539f4a68b1d8811969f9fa8b996
2016-02-12 14:58:34 -08:00
Matthew Dapena-Tretter
bb3d8d5350
Ensure recursion is terminated on objects with cyclical references
...
Reviewed By: spicyj
Differential Revision: D2922542
fb-gh-sync-id: 3820569027a5906ff844f1cda5e2e65c2692e235
shipit-source-id: 3820569027a5906ff844f1cda5e2e65c2692e235
2016-02-12 14:56:00 -08:00
Alex Krolick
4b722d6d2a
Add context to async example function in Network docs
...
Reviewed By: svcscm
Differential Revision: D2933584
fb-gh-sync-id: 24436b185791e3fa8047be521894545c08a90ee0
shipit-source-id: 24436b185791e3fa8047be521894545c08a90ee0
2016-02-12 13:39:31 -08:00
Ali Najafizadeh
e6a39a1d18
Update Linking.js
...
Reviewed By: svcscm
Differential Revision: D2933128
fb-gh-sync-id: ef33f88db50d6ddb7dd208b7ba5dab41c1ee2f81
shipit-source-id: ef33f88db50d6ddb7dd208b7ba5dab41c1ee2f81
2016-02-12 12:58:31 -08:00
Konstantin Raev
6c7991c3f2
Added ability to switch version in documentation website
...
Reviewed By: svcscm
Differential Revision: D2932534
fb-gh-sync-id: e67f028c914b64424458dad8fe52e588f6d0cd1c
shipit-source-id: e67f028c914b64424458dad8fe52e588f6d0cd1c
2016-02-12 11:57:35 -08:00
Emily Janzer
e93afad284
Don't show underlay if no press handlers
...
Reviewed By: sahrens
Differential Revision: D2915003
fb-gh-sync-id: 56ba942ed464e393ea43229b1fa9ef6936a24ecc
shipit-source-id: 56ba942ed464e393ea43229b1fa9ef6936a24ecc
2016-02-12 11:32:30 -08:00
Nick Lockwood
194273f5f5
Fixed hitTest crash due to sticky header out-of-range
...
Reviewed By: javache
Differential Revision: D2932227
fb-gh-sync-id: 05d69ec391685dd7e72d3d5f7d56b189a6eab413
shipit-source-id: 05d69ec391685dd7e72d3d5f7d56b189a6eab413
2016-02-12 09:28:21 -08:00
Andy Street
9547264a96
WebWorkers: Rename Bridge.m_jsExecutor -> Bridge.m_mainExecutor
...
Reviewed By: cjhopman
Differential Revision: D2921994
fb-gh-sync-id: ec06b922264a443932eb0446ff820aaf3dcacaa7
shipit-source-id: ec06b922264a443932eb0446ff820aaf3dcacaa7
2016-02-12 09:10:52 -08:00
Andy Street
0de8860a46
Rename executeApplicationScript -> loadApplicationScript
...
Reviewed By: davidaurelio
Differential Revision: D2921959
fb-gh-sync-id: 5bf44f5d037f2341000070f59309df0fab72aa29
shipit-source-id: 5bf44f5d037f2341000070f59309df0fab72aa29
2016-02-12 09:10:46 -08:00
Andy Street
cf7a97cc0f
WebWorkers: Pass Bridge to JSExecutors
...
Reviewed By: cjhopman
Differential Revision: D2921840
fb-gh-sync-id: f89f9ffe2c3bb0dabce7e8cbb9c7dc8b5062e267
shipit-source-id: f89f9ffe2c3bb0dabce7e8cbb9c7dc8b5062e267
2016-02-12 09:10:39 -08:00
Matteo Manchi
0f850b4760
Adding MyPED to React Native Showcase
...
Reviewed By: svcscm
Differential Revision: D2932104
fb-gh-sync-id: 1b315b13fe96bcdd674e056fa650762e466282d6
shipit-source-id: 1b315b13fe96bcdd674e056fa650762e466282d6
2016-02-12 08:50:34 -08:00
Nick Lockwood
313d84d507
Allocate RCTRootView.reactTag when it's first requested, instead of waiting until bundle has loaded.
...
Reviewed By: javache
Differential Revision: D2931937
fb-gh-sync-id: 1cc421a30028e3de1b2d22143edd645d8a34e4d4
shipit-source-id: 1cc421a30028e3de1b2d22143edd645d8a34e4d4
2016-02-12 08:32:36 -08:00
Martín Bigio
3781bf974d
Fix RAM detection logic
...
Reviewed By: davidaurelio
Differential Revision: D2932012
fb-gh-sync-id: ae2340de09ec3a4fae9371c3b8e6148d4ef267b8
shipit-source-id: ae2340de09ec3a4fae9371c3b8e6148d4ef267b8
2016-02-12 08:28:30 -08:00
Adam Miskiewicz
e018aa3100
Enable HMR
...
Reviewed By: svcscm
Differential Revision: D2932137
fb-gh-sync-id: 8bfab09aaac22ae498ac4fa896eee495111abc0d
shipit-source-id: 8bfab09aaac22ae498ac4fa896eee495111abc0d
2016-02-12 08:10:33 -08:00
Satyajit Sahoo
8eddead868
Add a deprecatedCallback helper
...
Reviewed By: svcscm
Differential Revision: D2926943
fb-gh-sync-id: 104bcd076f6427aac92e98081e492101ca78de26
shipit-source-id: 104bcd076f6427aac92e98081e492101ca78de26
2016-02-12 06:21:35 -08:00
David Aurelio
727a2a95d1
Let the module cache depend on transform options
...
Reviewed By: martinbigio
Differential Revision: D2921693
fb-gh-sync-id: 6f95bdb03d59183a1b5f50db16c6aab2b16d3146
shipit-source-id: 6f95bdb03d59183a1b5f50db16c6aab2b16d3146
2016-02-12 06:14:32 -08:00
Thomas Parslow
b5579e807e
Updated RCTPromiseRejectBlock example to use new 3 argument form
...
Reviewed By: svcscm
Differential Revision: D2931949
fb-gh-sync-id: d5da545c882e662f9c5d5b33cc3b152a4269bbb8
shipit-source-id: d5da545c882e662f9c5d5b33cc3b152a4269bbb8
2016-02-12 05:29:31 -08:00
Sreejumon
a7521a23ae
Created empty requestBody to solve the issue - "POST has no body"
...
Reviewed By: svcscm
Differential Revision: D2931739
fb-gh-sync-id: 04b6f59c257a35e4638c4c8f00bbffb34666145f
shipit-source-id: 04b6f59c257a35e4638c4c8f00bbffb34666145f
2016-02-12 04:51:33 -08:00
Pieter De Baets
84f51da123
Make JS async always the top thread in systrace
...
Reviewed By: tadeuzagallo
Differential Revision: D2905828
fb-gh-sync-id: b64cbe6b41771dc94d8d7e6d3610af845b4383f0
shipit-source-id: b64cbe6b41771dc94d8d7e6d3610af845b4383f0
2016-02-12 03:50:35 -08:00
Kevin Johnson
8f363a3f5f
This is supposed to say LifecycleEventListener
...
Reviewed By: svcscm
Differential Revision: D2931715
fb-gh-sync-id: 450c4fc13a87eaba39d06835aa851d7256da7125
shipit-source-id: 450c4fc13a87eaba39d06835aa851d7256da7125
2016-02-12 02:22:39 -08:00
Olivier Notteghem
3e72211cab
fix 'create' animation pivot to be relative to center of component
...
Reviewed By: sahrens
Differential Revision: D2931318
fb-gh-sync-id: b95ab0b5631f1780dab065b58340f25a274d0df9
shipit-source-id: b95ab0b5631f1780dab065b58340f25a274d0df9
2016-02-12 00:12:34 -08:00
Olivier Notteghem
065106678f
Reset the animation config at the end of each batch
...
Reviewed By: sahrens
Differential Revision: D2931343
fb-gh-sync-id: 702b1df543fbdb9b244eb6cc2ce4d8557471004f
shipit-source-id: 702b1df543fbdb9b244eb6cc2ce4d8557471004f
2016-02-12 00:05:35 -08:00
Hedger Wang
5ca9245067
stop wanring about using `onWillFocus` and `onDidFocus`.
...
Reviewed By: chaceliang
Differential Revision: D2925643
fb-gh-sync-id: d12b774b5c43d5369e2c02832d80541b2534fba6
shipit-source-id: d12b774b5c43d5369e2c02832d80541b2534fba6
2016-02-11 22:27:33 -08:00
Felix Oghina
8720d4bc76
strip devsupport from prod builds
...
Reviewed By: zen
Differential Revision: D2912192
fb-gh-sync-id: ff89fc16dcd86481657197055e31d2b67a94e7ea
shipit-source-id: ff89fc16dcd86481657197055e31d2b67a94e7ea
2016-02-11 13:34:37 -08:00
Martin Konicek
8e9b70aa86
Bot testing: Update TicTacToeApp.js
...
Summary:
Just testing the shipit bot
Closes https://github.com/facebook/react-native/pull/5843
Reviewed By: svcscm
Differential Revision: D2917790
Pulled By: mkonicek
fb-gh-sync-id: f73a9bf3aee82d1074f68d650f2bf30ac720a66d
shipit-source-id: f73a9bf3aee82d1074f68d650f2bf30ac720a66d
2016-02-11 08:32:31 -08:00
Konstantin Raev
7d7508e25b
Fixed a wrong github user used for deployment of gh-pages
...
Reviewed By: mkonicek
Differential Revision: D2927075
fb-gh-sync-id: b3a7d1541d11d7d9ebf01f72dac48847750968f8
shipit-source-id: b3a7d1541d11d7d9ebf01f72dac48847750968f8
2016-02-11 08:09:35 -08:00
Andrei Coman
228a1fe7d4
Expose screen metrics and window metrics
...
Summary:
public
https://github.com/facebook/react-native/pull/4935 changed the window dimensions for android by replacing them with the actual screen dimensions. This changes the window dimensions back to their original values and adds `Dimensions.get('screen')` for the actual screen dimensions of the device.
Reviewed By: astreet
Differential Revision: D2921584
fb-gh-sync-id: 5d2677029c71d50691691dc651a11e9c8b115e8f
shipit-source-id: 5d2677029c71d50691691dc651a11e9c8b115e8f
2016-02-11 06:33:36 -08:00
Konstantin Raev
6f1417c849
CI now builds docs website and deploys it to /%version% path
...
Summary:
Copy of #5760 reverted merge.
We need to preserve history of docs changes on the webserver.
The goal is to allow users to browse outdated versions of docs.
To make things simple all websites will be released to https://facebook.github.io/react-native/releases/version/XX folder when there is a branch cut.
I switched from Travis CI to Cirle CI because it works faster and I am more familiar with it.
How it works:
1. If code is pushed to `master` branch then CI will build a fresh version of docs and put it in https://github.com/facebook/react-native/tree/gh-pages/releases/next folder.
Github will serve this website from https://facebook.github.io/react-native/releases/version/next URL.
All relative URLs will work within that website
2. If code is pushed to `0.20-stable` branch then CI will build a fresh version of docs and put it in https://github.com/facebook/react-native/tree/gh-pages/releases/0.20 folder.
Github will serve this website from https://facebook.github.io/react-native/releases/v
Closes https://github.com/facebook/react-native/pull/5873
Reviewed By: svcscm
Differential Revision: D2926901
Pulled By: androidtrunkagent
fb-gh-sync-id: 16aea430bac815933d9c603f03921cc6353906f1
shipit-source-id: 16aea430bac815933d9c603f03921cc6353906f1
2016-02-11 06:17:42 -08:00
Felix Oghina
0b89b18b1b
format exceptions correctly when crashing
...
Reviewed By: ivank
Differential Revision: D2921881
fb-gh-sync-id: bd35ada33c752877dd3f6274ed8d4b4b7c851b9a
shipit-source-id: bd35ada33c752877dd3f6274ed8d4b4b7c851b9a
2016-02-11 04:37:28 -08:00
Adam Miskiewicz
28116ec3db
Reverted commit D2803288
...
Summary:
As spicyj mentioned in commit 6a838a4
, the ideal state of affairs when it comes to consuming `react` and `fbjs` from NPM is for the packager not to have knowledge of either package. This PR addresses the `fbjs` part of that, and relies on https://github.com/facebook/fbjs/pull/95 . **DO NOT MERGE** until #95 (or a variation) is in `fbjs` and is released to npm.
This PR does several things:
1. Adds stub modules within RN that expose `fbjs` modules to be required using Haste. After discussing a few ideas with spicyj, this seemed like a good option to keep internal FB devs happy (and not make them change the way they write JS), but allow for removing packager complexity and fit in better with the NPM ecosystem. Note -- it skips stubbing `fetch`, `ExecutionEnvironment`, and `ErrorUtils`, due to the fact that these need to have Native specific implementations, and there's no reason for those implementations to exist in `fbjs`.
2. Removes the modules that were previously being used in lieu of their `fbjs` eq
Closes https://github.com/facebook/react-native/pull/5084
Reviewed By: bestander
Differential Revision: D2803288
Pulled By: javache
fb-gh-sync-id: 121ae811ce4cc30e6ea79246f85a1e4f65648ce1
shipit-source-id: 121ae811ce4cc30e6ea79246f85a1e4f65648ce1
2016-02-11 02:45:34 -08:00
Adam Miskiewicz
98e5e2b427
Remove knowledge of fbjs from the packager
...
Summary:
As spicyj mentioned in commit 6a838a4
, the ideal state of affairs when it comes to consuming `react` and `fbjs` from NPM is for the packager not to have knowledge of either package. This PR addresses the `fbjs` part of that, and relies on https://github.com/facebook/fbjs/pull/95 . **DO NOT MERGE** until #95 (or a variation) is in `fbjs` and is released to npm.
This PR does several things:
1. Adds stub modules within RN that expose `fbjs` modules to be required using Haste. After discussing a few ideas with spicyj, this seemed like a good option to keep internal FB devs happy (and not make them change the way they write JS), but allow for removing packager complexity and fit in better with the NPM ecosystem. Note -- it skips stubbing `fetch`, `ExecutionEnvironment`, and `ErrorUtils`, due to the fact that these need to have Native specific implementations, and there's no reason for those implementations to exist in `fbjs`.
2. Removes the modules that were previously being used in lieu of their `fbjs` eq
Closes https://github.com/facebook/react-native/pull/5084
Reviewed By: bestander
Differential Revision: D2803288
Pulled By: davidaurelio
fb-gh-sync-id: fd257958ee2f8696eebe9048c1e7628c168bf4a2
shipit-source-id: fd257958ee2f8696eebe9048c1e7628c168bf4a2
2016-02-11 02:21:37 -08:00
Konstantin Raev
bf21002f2a
Circle CI stopped working with Gradle properly https://circleci.com/g …
...
Summary:
…h/facebook/react-native/2393, this is a fix
Closes https://github.com/facebook/react-native/pull/5857
Reviewed By: svcscm
Differential Revision: D2923274
Pulled By: androidtrunkagent
fb-gh-sync-id: 0f76958fde4639eca0b3f59b85a1443adf8c48d1
shipit-source-id: 0f76958fde4639eca0b3f59b85a1443adf8c48d1
2016-02-10 13:52:30 -08:00
Martin Konicek
eab211b1ec
Fix comment in open source MainActivity
...
Reviewed By: mkonicek
Differential Revision:D2923275
Ninja: ninja
fb-gh-sync-id: 1a6700853a1b292c3ae3dd17f2b3e8ce4a2755cf
shipit-source-id: 1a6700853a1b292c3ae3dd17f2b3e8ce4a2755cf
2016-02-10 12:54:20 -08:00
Nick Lockwood
915e5826ef
Restricted image decoding to 2 simultaneous threads
...
Reviewed By: zjj010104
Differential Revision: D2922292
fb-gh-sync-id: eddd47d02fc721acc1da69e7483c6570997320b5
shipit-source-id: eddd47d02fc721acc1da69e7483c6570997320b5
2016-02-10 12:54:11 -08:00
James Ide
b051d07b81
Update CONTRIBUTING.md
2016-02-10 12:46:26 -08:00
Adam Miskiewicz
f2a60a202f
Add 'file://' prefix to sourceURL when loading a script from a file.
...
Reviewed By: svcscm
Differential Revision: D2922108
Pulled By: androidtrunkagent
fb-gh-sync-id: d9c98af31e844e3fed2f57a3a4250a6ef5e735a8
shipit-source-id: d9c98af31e844e3fed2f57a3a4250a6ef5e735a8
2016-02-10 12:26:00 -08:00
Dave Miller
d96a4ba94d
Minor fixes to clipboard and Linking to remove TODOs
...
Reviewed By: nicklockwood
Differential Revision: D2921782
fb-gh-sync-id: e387b720421ed6ed03a50633d71e08791f87c761
shipit-source-id: e387b720421ed6ed03a50633d71e08791f87c761
2016-02-10 12:25:51 -08:00
Martin Konicek
ab09ff53d4
[website] Make 404.js line ending match internal
2016-02-10 17:20:53 +00:00
Martin Konicek
189ef95bb6
[website] Update 404.js
2016-02-10 17:13:51 +00:00
wusuopu
97741af8b9
Fix warnings of StyleInspector
...
Summary:
Fix issue #5831
Closes https://github.com/facebook/react-native/pull/5832
Reviewed By: svcscm
Differential Revision: D2917760
Pulled By: vjeux
fb-gh-sync-id: 3808d14075b259dd21056a7111205edae1e3eb48
shipit-source-id: 3808d14075b259dd21056a7111205edae1e3eb48
2016-02-10 08:40:39 -08:00