Sebastian Markbage
9574f88701
Move takeSnapshot from React repo to RN
...
Reviewed By: sophiebits
Differential Revision: D7547298
fbshipit-source-id: 6ab0c0a9e244a2f68d27307b84285b2c8fff1342
2018-04-07 23:23:33 -07:00
Sebastian Markbage
06085d3836
Move TouchHistoryMath from React Repo to React Native
...
Summary:
This hasn't been used by React core for a while. It's unclear why it was in the first place.
We can move it back next to the Panresponder.
https://github.com/facebook/react/pull/12557
Reviewed By: sophiebits
Differential Revision: D7529949
fbshipit-source-id: ef9892cfa8d2d6768da216b81befabe02795a245
2018-04-05 22:07:01 -07:00
Héctor Ramos
445b0c7080
React sync for revisions 1c2876d...7a3416f
...
Reviewed By: bvaughn
Differential Revision: D7526137
fbshipit-source-id: 9f9db8a6b56cb4ae581a7b8d28079ec38de2180f
2018-04-05 17:34:53 -07:00
Brian Vaughn
e574b85db6
React sync for revisions 9d484ed...1c2876d
...
Reviewed By: gaearon
Differential Revision: D7500761
fbshipit-source-id: 8dc1cda879942fc4990b23144a616039fdbe6dc0
2018-04-04 15:20:13 -07:00
Héctor Ramos
3b36a6bf06
React sync for revisions ced176e...9d484ed
...
Reviewed By: bvaughn
Differential Revision: D7338640
fbshipit-source-id: e2d75d2f1795fb3c37f193d15216951c707711d9
2018-03-20 17:14:40 -07:00
Kevin Gozali
38fe8c2a9e
moved ReactFabricInternals outside of shims
...
Summary: Simply moving it out of shims to not confuse React project
Reviewed By: bvaughn
Differential Revision: D7341846
fbshipit-source-id: b1a0cdb0caca977de744699521f42556699993a7
2018-03-20 15:45:08 -07:00
Brian Vaughn
22004db819
React sync for revisions ad9544f...ced176e
...
Reviewed By: sebmarkbage
Differential Revision: D7281277
fbshipit-source-id: 75a638114cf2a65a5c973dbdf218f6d3ba042cc4
2018-03-14 23:30:53 -07:00
Héctor Ramos
4f8328bf2f
React sync for revisions ab4280b...ad9544f
...
Reviewed By: bvaughn
Differential Revision: D7256390
fbshipit-source-id: 9fe1324da93cb8f4a7f478e1037944774b9b95ff
2018-03-14 09:02:31 -07:00
Eli White
26734a8473
Migrating View to be a Flow Typed ES6 class
...
Summary:
The flow type for View using createReactClass was essentially `any`, allowing any Prop to be passed in, only pseudo enforced at run time via propTypes.
This diff converts View away from createReactClass and instead uses ReactNative.NativeComponent. This was previously typed as any as well which didn't buy us much. This change converts View to be an ES6 React class component to ensure proptypechecking, and exposes the methods copied from NativeMethodsMixin.
Reviewed By: yungsters
Differential Revision: D5933888
fbshipit-source-id: eae63b818203e0e86741f9f154ec9cf3498369e2
2018-03-09 18:33:52 -08:00
David Vacca
9b3861c109
Fix unmount of ReactRootView for Fabric surfaces
...
Reviewed By: fkgozali
Differential Revision: D7114865
fbshipit-source-id: f0a1c47c983e610fe0dba3051ed8aa350ac052cc
2018-03-01 10:33:21 -08:00
Héctor Ramos
160578624a
React sync for revisions a634e53...ab4280b
...
Reviewed By: bvaughn
Differential Revision: D7077686
fbshipit-source-id: de39027bef1f9d48802202555a5c765999d7bfe7
2018-02-28 19:44:58 -08:00
Sebastian Markbage
07334cb47b
Clean up unused modules
...
Reviewed By: fkgozali
Differential Revision: D7092777
fbshipit-source-id: 619a78911f2857f1183597143aec86957f277f9e
2018-02-26 20:03:27 -08:00
Kevin Gozali
486ac9dc82
update FabricUIManager to call the right JS object
...
Reviewed By: sebmarkbage
Differential Revision: D7037275
fbshipit-source-id: 6a1d13227910d0cdb99dde4b6c98ed7a20ef9911
2018-02-23 17:04:40 -08:00
Brian Vaughn
bedaaa1419
React sync for revisions 467b103...a634e53
...
Reviewed By: flarnie
Differential Revision: D6965585
fbshipit-source-id: 48c20d0010f4daf83272a36b3bdaca94493ab8fa
2018-02-12 14:02:30 -08:00
Héctor Ramos
5e80d95e03
React sync for revisions 4eed18d...467b103
...
Reviewed By: bvaughn
Differential Revision: D6953225
fbshipit-source-id: f96e3cec57cce397d46d49115dd3734a33427992
2018-02-09 16:05:29 -08:00
Kevin Gozali
fa0ac92b2c
call into native FabricUIManager from JS
...
Reviewed By: mdvacca
Differential Revision: D6945104
fbshipit-source-id: ac66c6105c0d18bef003cdd08d06dbb49c61e669
2018-02-08 19:31:25 -08:00
Kevin Gozali
94dac23583
Added ReactFabric shim
...
Summary:
A simple shim just like ReactNative.js
Plus a fork of renderApplication that exclusively will call ReactFabric.
Reviewed By: mdvacca
Differential Revision: D6919080
fbshipit-source-id: 5807105a6c45dd99584eb92a5570c6076e2d56b9
2018-02-06 21:49:37 -08:00
Brian Vaughn
13829751b1
React sync for revisions a7b9f98...4eed18d
...
Reviewed By: gaearon
Differential Revision: D6875052
fbshipit-source-id: 516f46f1b78bd8ca3323ba119d3afda491d76497
2018-02-01 14:06:55 -08:00
Brian Vaughn
c7ed03a95c
Synced ReactFabric render
...
Reviewed By: fkgozali, sebmarkbage
Differential Revision: D6839001
fbshipit-source-id: 47b8278e883c33ca1f359dd16614f86c292e972d
2018-01-30 09:01:17 -08:00
Brian Vaughn
d676746f14
React sync for revisions 9491dee...a7b9f98
...
Reviewed By: sebmarkbage
Differential Revision: D6834573
fbshipit-source-id: 30829313053ecec54a891941fcf090021497ef8e
2018-01-29 14:44:11 -08:00
Brian Vaughn
a99f0d6100
Temporarily patched Map/Set non-extensible check into RN dev renderer
...
Reviewed By: jingc
Differential Revision: D6461125
fbshipit-source-id: 8b30a22db4e357717f1c4f4e21a85ddef02d97d1
2017-12-05 12:27:12 -08:00
Brian Vaughn
cd938d731c
React sync for revisions 2d23a45...9491dee
...
Reviewed By: flarnie
Differential Revision: D6436328
fbshipit-source-id: 370b862c23c9804bd6df72812d08baceaebfca78
2017-11-29 10:16:58 -08:00
Brian Vaughn
c7f37074ac
React sync for revisions 589c0a2...2d23a45
...
Reviewed By: acdlite
Differential Revision: D6328351
fbshipit-source-id: 88dc0f6ec9947e4a908c21f3a3df46bca5a7fdbc
2017-11-15 09:16:18 -08:00
Brian Vaughn
43241e591d
Moved `PooledClass` and improved `js1 upgrade react`
...
Reviewed By: gaearon
Differential Revision: D6136816
fbshipit-source-id: fca775786cf4f1717509d9bfeb0f789cc6a99e4e
2017-10-24 12:30:27 -07:00
Brian Vaughn
678a7f3c39
React sync for revisions b5ac963...5f93ee6f6
...
Reviewed By: gaearon
Differential Revision: D5950896
fbshipit-source-id: 74aebcee8a64e8552b170223adf59ed4ed905a74
2017-10-04 10:16:15 -07:00
Brian Vaughn
8bf8b21613
React sync for revisions abce30f...b5ac963
...
Reviewed By: sophiebits
Differential Revision: D5853012
fbshipit-source-id: d0ebf12d2c801dc3e232fe18f9cc25e477812350
2017-09-18 16:45:26 -07:00
Brian Vaughn
75c94a8907
Native view manager event types exposed to JS via view config
...
Differential Revision: D5814210
fbshipit-source-id: 41291f0d6b39af77f66173f6a699d88f9f4ccc74
2017-09-14 18:17:17 -07:00
Brian Vaughn
e9780bdc0f
ReactNative sync (c3718c4...abce30f): the one about the Prepack optimizations
...
Reviewed By: sophiebits
Differential Revision: D5626312
fbshipit-source-id: f8158ccb14f991b681fba34fb23933042266939d
2017-09-14 18:17:17 -07:00
Caleb Meredith
63f990121a
Fix React Native open source
...
Reviewed By: hramos, TheSavior
Differential Revision: D5728356
fbshipit-source-id: fb751d67c16ba9273de93d9b6d5acd65b1555dca
2017-08-29 15:01:05 -07:00
Caleb Meredith
90eaeb019b
Upgrade fbsource/xplat/js to Flow v0.53.0
...
Reviewed By: avikchaudhuri
Differential Revision:
D5648819
Ninja: T20988071
fbshipit-source-id: 66e5b6747c79ae66b6eb69d40ede5e982c26174f
2017-08-17 18:45:01 -07:00
Caleb Meredith
30d9c3d279
Add suppressions for Flow v0.53.0 before React changes
...
Reviewed By: avikchaudhuri
Differential Revision: D5648801
fbshipit-source-id: c4eb1bee198a177b69b6e9414111ce957b4d27ff
2017-08-17 05:18:33 -07:00
Kevin Gozali
66da0d27da
move the ReactNativeFeatureFlags outside of sync dir
...
Reviewed By: bvaughn
Differential Revision: D5627037
fbshipit-source-id: 0544b822ba03090a74695911b6951e91262478a0
2017-08-15 10:48:43 -07:00
Kevin Gozali
b58207e61f
remove internal copy of ReactNativeFeatureFlags
...
Reviewed By: bvaughn, davidaurelio
Differential Revision: D5618991
fbshipit-source-id: 8b93bca186523585732c2177540189a1d83f9c90
2017-08-14 11:05:35 -07:00
Alexey Lang
3a031cc93a
Bring back React Stack support
...
Reviewed By: javache
Differential Revision: D5547208
fbshipit-source-id: 25cef6aa27fc4f17b26e1088256819ea235f79cf
2017-08-10 04:17:27 -07:00
Ben Alpert
460c5dbdf9
unbreak touching in prod mode
...
Reviewed By: ejanzer, bvaughn
Differential Revision: D5599808
fbshipit-source-id: bbc666c5a7e15323504100bdf3b04452e152fdb5
2017-08-09 20:02:17 -07:00
Brian Vaughn
046f600cc2
React 16 beta 5 sync (5495e49...c3718c4)
...
Reviewed By: spicyj
Differential Revision: D5564030
fbshipit-source-id: fd3e6133df7ee8e7488a3c515ce6c783c11d9401
2017-08-09 12:35:30 -07:00
Brian Vaughn
221286be13
React sync for revisions cb32253...5495e49
...
Reviewed By: acdlite
Differential Revision: D5416055
fbshipit-source-id: c69de0d699f11dec4a71fb6e3f924ade3446bba0
2017-07-13 17:38:57 -07:00
Brian Vaughn
30352ecbf2
React sync for revisions 4aea7c3...cb32253
...
Reviewed By: sebmarkbage
Differential Revision: D5322642
fbshipit-source-id: 91ac72b2fc3be9c5805db1ac4bd72d3fcee5b70f
2017-06-26 15:15:59 -07:00
Brian Vaughn
40b5486eea
React sync for revisions a37012a...4aea7c3
...
Reviewed By: gaearon
Differential Revision: D5222812
fbshipit-source-id: 3dd3dd82f2a8a5080bb3a47b78f92eb26c435b11
2017-06-12 14:20:48 -07:00
Brian Vaughn
a4947d1778
React Native sync
...
Reviewed By: sebmarkbage
Differential Revision: D5214576
fbshipit-source-id: 41f350ce8961851c7404257df8295d505471d9f4
2017-06-08 19:15:59 -07:00
Brian Vaughn
0bc3bb06ed
Updated react sync script
...
Reviewed By: yungsters
Differential Revision: D5194769
fbshipit-source-id: c475d44616144ea354785b981b1f6068be49f848
2017-06-06 22:53:10 -07:00
Dominic Gannaway
59e41b4485
Refactor of Fiber integration with React Fiber + Stack
...
Summary:
This PR aims to update the Inspector tool in React Native to use the new inspection APIs that have been added to the ReactNative renderer:
https://github.com/facebook/react/pull/9691
This PR also cleans up the code in `Inspector.js` so there's no usage of React's internals.
Closes https://github.com/facebook/react-native/pull/14160
Reviewed By: bvaughn
Differential Revision: D5129280
Pulled By: trueadm
fbshipit-source-id: b1b077c04f46b0f52cdea0e19b4154441558f77a
2017-05-30 10:02:32 -07:00
Brian Vaughn
94c565a2c4
Flat ReactNative renderer bundle [WIP]
...
Reviewed By: trueadm
Differential Revision: D5013497
fbshipit-source-id: 1e23b08751b8b6e2dd570ff584c815c8a9b8f35f
2017-05-26 11:03:06 -07:00
Gabe Levi
3ddc7d47d5
Fix react-native function call arity errors
...
Reviewed By: zertosh
Differential Revision: D5081816
fbshipit-source-id: 5978770c30a69fb287d03aa7511999ce30f856a1
2017-05-18 16:55:55 -07:00
Dan Abramov
074c3cef14
Work around a false positive warning
...
Summary:
This works around a false positive `isMounted()` deprecation warning when using latest React DevTools and selecting components in the hierarchy.
Before:
![screen shot 2017-05-09 at 7 03 39 pm 1](https://cloud.githubusercontent.com/assets/810438/25865249/3a5cc9e2-34ea-11e7-9930-6d0d8436b390.png )
After:
![screen shot 2017-05-09 at 7 02 54 pm](https://cloud.githubusercontent.com/assets/810438/25865274/4d2d573a-34ea-11e7-8bdd-807e32c54594.png )
Closes https://github.com/facebook/react-native/pull/13873
Reviewed By: bvaughn
Differential Revision: D5029550
Pulled By: gaearon
fbshipit-source-id: cbe941368e8204a335de17ad3d444580aef9d833
2017-05-09 12:38:07 -07:00
Brian Vaughn
909fb7239d
findNodeHandle properly handles ReactCurrentOwner.current Fiber type
...
Reviewed By: spicyj
Differential Revision: D5005265
fbshipit-source-id: 218ba3461514fa1dd603ad53c129dd37d7309050
2017-05-04 16:02:50 -07:00
Brian Vaughn
ef0bd5c71d
Sync React 16 from alpha 6 to 12
...
Reviewed By: spicyj
Differential Revision: D4926070
fbshipit-source-id: c23c79ccd53eb594447d9b47fe3ac6e82499bd42
2017-05-03 17:16:48 -07:00
Rich R
066bebbb7f
Minor doc fix
...
Summary:
Thanks for submitting a PR! Please read these instructions carefully:
- [ ] Explain the **motivation** for making this change.
- [ ] Provide a **test plan** demonstrating that the code is solid.
- [ ] Match the **code formatting** of the rest of the codebase.
- [ ] Target the `master` branch, NOT a "stable" branch.
What existing problem does the pull request solve? Minor omission in doc.
A good test plan has the exact commands you ran and their output, provides screenshots or videos if the pull request changes UI or updates the website. See [What is a Test Plan?][1] to learn more.
If you have added code that should be tested, add tests.
No code changes.
Sign the [CLA][2], if you haven't already.
Small pull requests are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.
Make sure all **tests pass** on both [Travis][3] and [Circle CI][4]. PRs that break tests are unlikely to be merged.
For more info, see the ["Pull Requests"][5] section of our "Contributing" guidelines.
[1]: https://medium.com/martinkonicek/what-is-a-test-plan-8bfc840ec171#.y9lcuqqi9
[2]: https://code.facebook.com/cla
[3]: https://travis-ci.org/facebook/react-native
[4]: http://circleci.com/gh/facebook/react-native
[5]: https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#pull-requests
Closes https://github.com/facebook/react-native/pull/13666
Differential Revision: D4953796
Pulled By: javache
fbshipit-source-id: 131c2326d6631fe193f6ccae124e1f09af3f5c73
2017-04-26 04:00:09 -07:00
Ben Alpert
8f2d73d50b
React Native Fiber: Fix errors in children management
...
Reviewed By: bvaughn
Differential Revision: D4905062
fbshipit-source-id: 43c24e7bcaf06eb4c7385b7022d0f20cf42d6f2f
2017-04-18 18:33:30 -07:00
Brian Vaughn
f3e56cbbb7
Ran React.PropTypes codemod on fbsource again in case anything was missed
...
Reviewed By: flarnie
Differential Revision: D4890226
fbshipit-source-id: 36b87bd4395c8cfbe260d2c73f919e62b11439a7
2017-04-14 15:46:04 -07:00