Wayne Cheng
f536a0c268
Adding flow strict local to remaining possible files in xplat/JS
...
Summary:
ag -L --ignore __snapshots__ 'flow strict|noflow|generated|The controller you requested could not be found.' | ag '\.js$' | xargs ag -l 'flow' | sort > ~/temp
cat ~/temp | xargs ag -L 'flow strict' | xargs sed -i '' 's/flow$/flow strict-local/'
until flow check; do flow check --json | jq -r '.errors[].message[0].path' | sort | uniq | xargs hg revert; done
allow_many_files
The controller you requested could not be found.
The controller you requested could not be found.
Reviewed By: TheSavior
Differential Revision: D9004573
fbshipit-source-id: 936bd5741706b781be06bf08b6ad805a69407dfd
2018-08-09 08:54:44 -07:00
Héctor Ramos
70913a4623
React sync for revisions ae14317...ca0941f
...
Summary:
@public
This sync includes the following changes:
- **[ca0941fce](https://github.com/facebook/react/commit/ca0941fce )**: Add regression test for Placeholder fallbacks with lifecycle methods (#13254 ) //<Andrew Clark>//
- **[a32c727f2](https://github.com/facebook/react/commit/a32c727f2 )**: Optimize readContext for Subsequent Reads of All Bits (#13248 ) //<Sebastian Markbåge>//
- **[2b509e2c8](https://github.com/facebook/react/commit/2b509e2c8 )**: [Experimental] API for reading context from within any render phase function (#13139 ) //<Andrew Clark>//
- **[5776fa3fc](https://github.com/facebook/react/commit/5776fa3fc )**: Update www warning shim (#13244 ) //<Dan Abramov>//
- **[3d3506d37](https://github.com/facebook/react/commit/3d3506d37 )**: Include Modes in the component stack (#13240 ) //<Dan Abramov>//
- **[71b4e9990](https://github.com/facebook/react/commit/71b4e9990 )**: [react-test-renderer] Jest matchers for async tests (#13236 ) //<Andrew Clark>//
- **[2c560cb99](https://github.com/facebook/react/commit/2c560cb99 )**: Fix unwinding starting with a wrong Fiber on error in the complete phase (#13237 ) //<Dan Abramov>//
- **[ead08827d](https://github.com/facebook/react/commit/ead08827d )**: Add more flexibility in testing errors in begin/complete phases (#13235 ) //<Dan Abramov>//
- **[e4e58343e](https://github.com/facebook/react/commit/e4e58343e )**: Move unstable_yield to main export (#13232 ) //<Andrew Clark>//
- **[0e235bb8f](https://github.com/facebook/react/commit/0e235bb8f )**: Removed unused state argument in unsubscribe method of <Subscription /> (#13233 ) //<Mateusz Burzyński>//
- **[236f60872](https://github.com/facebook/react/commit/236f60872 )**: Fail tests if toWarnDev() does not wrap warnings in array (#13227 ) //<Dan Abramov>//
- **[acbb4f93f](https://github.com/facebook/react/commit/acbb4f93f )**: Remove the use of proxies for synthetic events in DEV (#13225 ) //<Dan Abramov>//
- **[171e0b7d4](https://github.com/facebook/react/commit/171e0b7d4 )**: Fix “no onChange handler” warning to fire on falsy values ("", 0, false) too (#12628 ) //<Nicole Levy>//
- **[606c30aa5](https://github.com/facebook/react/commit/606c30aa5 )**: fixed a typo in commentout in ReactFiberUnwindWork.js (#13172 ) //<Fumiya Shibusawa>//
- **[9f78913b2](https://github.com/facebook/react/commit/9f78913b2 )**: Update prettier (#13205 ) //<Johan Henriksson>//
- **[6d3e26288](https://github.com/facebook/react/commit/6d3e26288 )**: Remove unnecessary `typeof` checks (#13196 ) //<jddxf>//
- **[82c7ca4cc](https://github.com/facebook/react/commit/82c7ca4cc )**: Add component stacks to some warnings (#13218 ) //<Dan Abramov>//
- **[21ac62c77](https://github.com/facebook/react/commit/21ac62c77 )**: Fix a portal unmounting crash for renderers with distinct Instance and Container (#13220 ) //<Thibault Malbranche>//
- **[d6a0626b3](https://github.com/facebook/react/commit/d6a0626b3 )**: Set current fiber during before-mutation traversal (#13219 ) //<Dan Abramov>//
- **[f9358c51c](https://github.com/facebook/react/commit/f9358c51c )**: Change warning() to automatically inject the stack, and add warningWithoutStack() as opt-out (#13161 ) //<Dan Abramov>//
- **[467d13910](https://github.com/facebook/react/commit/467d13910 )**: Enforce presence or absence of component stack in tests (#13215 ) //<Dan Abramov>//
- **[43ffae2d1](https://github.com/facebook/react/commit/43ffae2d1 )**: Suspending inside a constructor outside of strict mode (#13200 ) //<Andrew Clark>//
- **[659a29cec](https://github.com/facebook/react/commit/659a29cec )**: Reorganize how shared internals are accessed (#13201 ) //<Dan Abramov>//
- **[58f3b29d9](https://github.com/facebook/react/commit/58f3b29d9 )**: Added SSR/hydration tests for modes, forwardRef, and Profiler (#13195 ) //<Brian Vaughn>//
- **[1c89cb62f](https://github.com/facebook/react/commit/1c89cb62f )**: Use ReactDebugCurrentFrame.getStackAddendum() in element validator (#13198 ) //<Dan Abramov>//
- **[e6076ecf4](https://github.com/facebook/react/commit/e6076ecf4 )**: Remove ad-hoc forks of getComponentName() and fix it (#13197 ) //<Dan Abramov>//
- **[32f6f258b](https://github.com/facebook/react/commit/32f6f258b )**: Remove event simulation of onChange events (#13176 ) //<Philipp Spieß>//
- **[9ca37f843](https://github.com/facebook/react/commit/9ca37f843 )**: docs: update comments (#13043 ) //<Sen Yang>//
- **[f89f25f47](https://github.com/facebook/react/commit/f89f25f47 )**: Correct type of `ref` in forwardRef render() (#13100 ) //<Moti Zilberman>//
- **[7b99ceabe](https://github.com/facebook/react/commit/7b99ceabe )**: Deprecate test utils mock component follow up (#13194 ) //<Brian Vaughn>//
- **[6ebc8f3c0](https://github.com/facebook/react/commit/6ebc8f3c0 )**: Add support for re-entrant SSR stacks (#13181 ) //<Dan Abramov>//
- **[d64d1ddb5](https://github.com/facebook/react/commit/d64d1ddb5 )**: Deprecate ReactTestUtils.mockComponent() (#13193 ) //<Brian Vaughn>//
- **[e79366d54](https://github.com/facebook/react/commit/e79366d54 )**: Link create-subscription doc to GH issue with de-opt explanation (#13187 ) //<Brian Vaughn>//
- **[1f32d3c6d](https://github.com/facebook/react/commit/1f32d3c6d )**: Test renderer flushAll method verifies an array of expected yields (#13174 ) //<Brian Vaughn>//
- **[377e1a049](https://github.com/facebook/react/commit/377e1a049 )**: Add a test for SSR stack traces (#13180 ) //<Dan Abramov>//
- **[96d38d178](https://github.com/facebook/react/commit/96d38d178 )**: Fix concatenation of null to a warning message (#13166 ) //<Dan Abramov>//
- **[095dd5049](https://github.com/facebook/react/commit/095dd5049 )**: Add DEV warning if forwardRef function doesn't use the ref param (#13168 ) //<Brian Vaughn>//
- **[566259567](https://github.com/facebook/react/commit/566259567 )**: Refactor stack handling (no functional changes) (#13165 ) //<Dan Abramov>//
- **[ebbd22143](https://github.com/facebook/react/commit/ebbd22143 )**: Configure react-test-renderer as a secondary (#13164 ) //<Brandon Dail>//
- **[ddc91af79](https://github.com/facebook/react/commit/ddc91af79 )**: Decrease nested update limit from 1000 to 50 (#13163 ) //<Andrew Clark>//
- **[3596e40b3](https://github.com/facebook/react/commit/3596e40b3 )**: Fix nested update bug (#13160 ) //<Andrew Clark>//
- **[449f6ddd5](https://github.com/facebook/react/commit/449f6ddd5 )**: create a new FeatureFlags file for test renderer on www (#13159 ) //<Chang Yan>//
- **[f762b3abb](https://github.com/facebook/react/commit/f762b3abb )**: Run react-dom SSR import test in jsdom-less environment (#13157 ) //<Dan Abramov>//
- **[6f6b560a6](https://github.com/facebook/react/commit/6f6b560a6 )**: Renamed selfBaseTime/treeBaseTime Fiber attributes to selfBaseDuration/treeBaseDuration (#13156 ) //<Brian Vaughn>//
- **[1386ccddd](https://github.com/facebook/react/commit/1386ccddd )**: Fix ReferenceError when requestAnimationFrame isn't defined (#13152 ) //<Dan Abramov>//
- **[f5779bbc1](https://github.com/facebook/react/commit/f5779bbc1 )**: Run server rendering test on bundles (#13153 ) //<Dan Abramov>//
- **[9faf389e7](https://github.com/facebook/react/commit/9faf389e7 )**: Reset profiler timer correctly after errors (#13123 ) //<Brian Vaughn>//
- **[85fe4ddce](https://github.com/facebook/react/commit/85fe4ddce )**: Fix - issue #12765 / the checked attribute is not initially set on the input (#13114 ) //<XuMM_12>//
- **[07fefe333](https://github.com/facebook/react/commit/07fefe333 )**: Drop handling for ms and O prefixes for CSS transition and animation events. (#13133 ) //<Rouven Weßling>//
- **[88d7ed8bf](https://github.com/facebook/react/commit/88d7ed8bf )**: React.Timeout -> React.Placeholder (#13105 ) //<Andrew Clark>//
- **[f128fdea4](https://github.com/facebook/react/commit/f128fdea4 )**: Suspending outside of strict trees and async trees (#13098 ) //<Andrew Clark>//
- **[aa8266c4f](https://github.com/facebook/react/commit/aa8266c4f )**: Prepare placeholders before timing out (#13092 ) //<Andrew Clark>//
- **[c039c16f2](https://github.com/facebook/react/commit/c039c16f2 )**: Fix this in a functional component for ShallowRenderer (#13144 ) //<Toru Kobayashi>//
- **[64e1921aa](https://github.com/facebook/react/commit/64e1921aa )**: Fix Flow type that event target can be null (#13124 ) //<Sebastian Markbåge>//
- **[6d6de6011](https://github.com/facebook/react/commit/6d6de6011 )**: Add PROFILE bundles for www+DOM and fbsource+RN/RF (#13112 ) //<Brian Vaughn>//
- **[71a60ddb1](https://github.com/facebook/react/commit/71a60ddb1 )**: Add link to another article about React renderers //<Dan Abramov>//
- **[6a530e3ba](https://github.com/facebook/react/commit/6a530e3ba )**: adding check for mousemove (#13090 ) //<Jason Williams>//
- **[c35a1e748](https://github.com/facebook/react/commit/c35a1e748 )**: Fix crash during server render in react 16.4.1. (#13088 ) //<Dustin Masters>//
- **[076bbeace](https://github.com/facebook/react/commit/076bbeace )**: Fall back to 'setTimeout' when 'requestAnimationFrame' is not called (#13091 ) //<Flarnie Marchan>//
- **[da5c87bdf](https://github.com/facebook/react/commit/da5c87bdf )**: Fixes children when using dangerouslySetInnerHtml in a selected <option> (#13078 ) //<Michael Ridgway>//
- **[a960d18bc](https://github.com/facebook/react/commit/a960d18bc )**: eliminate unnecessary do-while loop in renderRoot() (#13087 ) //<Nathan Quarles>//
- **[5b3d17a5f](https://github.com/facebook/react/commit/5b3d17a5f )**: setting a flag, so that the first movement will have the correct value (#13082 ) //<Jason Williams>//
- **[b0f60895f](https://github.com/facebook/react/commit/b0f60895f )**: Automatically Profile roots when DevTools is present (#13058 ) //<Brian Vaughn>//
- **[ae8c6dd53](https://github.com/facebook/react/commit/ae8c6dd53 )**: remove some redundant lines (#13077 ) //<Nathan Quarles>//
- **[0fcf92d06](https://github.com/facebook/react/commit/0fcf92d06 )**: Add a link to custom renderer intro article //<Dan Abramov>//
- **[97af3e1f3](https://github.com/facebook/react/commit/97af3e1f3 )**: Do not add additional work to a batch that is already rendering (#13072 ) //<Andrew Clark>//
- **[4fe6eec15](https://github.com/facebook/react/commit/4fe6eec15 )**: Always batch updates of like priority within the same event (#13071 ) //<Andrew Clark>//
- **[8e87c139b](https://github.com/facebook/react/commit/8e87c139b )**: Remove transitive dependency on fbjs (#13075 ) //<Dan Abramov>//
- **[aeda7b745](https://github.com/facebook/react/commit/aeda7b745 )**: Remove fbjs dependency (#13069 ) //<Dan Abramov>//
- **[b1b3acbd6](https://github.com/facebook/react/commit/b1b3acbd6 )**: Inline fbjs/lib/emptyObject (#13055 ) //<Dan Abramov>//
Release Notes:
[GENERAL] [FEATURE] [React] - React sync for revisions ae14317...ca0941f
Reviewed By: bvaughn
Differential Revision: D8979192
fbshipit-source-id: 7a14d3b0a253a81d162d7f8c899e99cf6ac4fee4
2018-07-24 14:47:52 -07:00
Tim Yung
c749d951ad
React sync for revisions c0fe8d6...ae14317
...
Summary:
This sync includes the following changes:
- **[ae14317d6](https://github.com/facebook/react/commit/ae14317d6 )**: Inline fbjs/lib/emptyFunction (#13054 ) //<Dan Abramov>//
- **[72434a768](https://github.com/facebook/react/commit/72434a768 )**: Remove or inline some fbjs dependencies (#13046 ) //<Dan Abramov>//
- **[64c54edea](https://github.com/facebook/react/commit/64c54edea )**: Adding movementX and movementY to synthenticMouseEvent fixes #6723 (#9018 ) //<Jason Williams>//
- **[9bd4d1fae](https://github.com/facebook/react/commit/9bd4d1fae )**: Synchronously restart when an error is thrown during async rendering (#13041 ) //<Andrew Clark>//
- **[9bda7b28f](https://github.com/facebook/react/commit/9bda7b28f )**: Suspended high pri work forces lower priority work to expire early (#12965 ) //<Andrew Clark>//
- **[2e7577907](https://github.com/facebook/react/commit/2e7577907 )**: Fix incorrect data in compositionend event with Korean IME on IE11 (#10217 ) (#12563 ) //<Crux>//
- **[bc963f353](https://github.com/facebook/react/commit/bc963f353 )**: setJSResponder in Fabric renderer (#13031 ) //<Sebastian Markbåge>//
- **[051637da6](https://github.com/facebook/react/commit/051637da6 )**: Extract Fabric event handlers from canonical props (#13024 ) //<Sebastian Markbåge>//
- **[2a8085980](https://github.com/facebook/react/commit/2a8085980 )**: Remove rAF fork (#12980 ) //<Flarnie Marchan>//
- **[e0c78344e](https://github.com/facebook/react/commit/e0c78344e )**: Retry on error if there's lower priority pending work (#12957 ) //<Andrew Clark>//
- **[9725065eb](https://github.com/facebook/react/commit/9725065eb )**: Update bundle sizes for 16.4.1 release //<Dan Abramov>//
- **[0b87b2790](https://github.com/facebook/react/commit/0b87b2790 )**: Updating package versions for release 16.4.1 //<Dan Abramov>//
- **[036ae3c6e](https://github.com/facebook/react/commit/036ae3c6e )**: Use native event dispatching instead of Simulate or SimulateNative (#13023 ) //<Philipp Spieß>//
- **[945fc1bfc](https://github.com/facebook/react/commit/945fc1bfc )**: Call gDSFP with the right state in react-test-render (#13030 ) //<Rafał Ruciński>//
- **[392530104](https://github.com/facebook/react/commit/392530104 )**: Remove feature flag around 'getDerivedStateFromProps' bug fix (#13022 ) //<Flarnie Marchan>//
- **[1594409fa](https://github.com/facebook/react/commit/1594409fa )**: Scheduler depends on common packages (#13020 ) //<Dan Abramov>//
- **[d5c11193e](https://github.com/facebook/react/commit/d5c11193e )**: Added production profiling bundle type (#12886 ) //<Brian Vaughn>//
- **[ec60457bc](https://github.com/facebook/react/commit/ec60457bc )**: Popping context is O(1) in SSR (#13019 ) //<Dan Abramov>//
- **[30bc8ef79](https://github.com/facebook/react/commit/30bc8ef79 )**: Allow multiple root children in test renderer traversal API (#13017 ) //<Dan Abramov>//
- **[d480782c4](https://github.com/facebook/react/commit/d480782c4 )**: Don’t error when returning an empty Fragment (#12966 ) //<Philipp Spieß>//
- **[4ac6f133a](https://github.com/facebook/react/commit/4ac6f133a )**: Fallback to event.srcElement for IE9 (#12976 ) //<Nathan Hunzaker>//
- **[23be4102d](https://github.com/facebook/react/commit/23be4102d )**: Fixed an issue with nested contexts unwinding when server rendering. Issue #12984 (#12985 ) //<Eric Soderberg>//
- **[d0d428064](https://github.com/facebook/react/commit/d0d428064 )**: Remove old reference to inst._wrapperState (#12987 ) //<Nathan Hunzaker>//
- **[c78957eac](https://github.com/facebook/react/commit/c78957eac )**: Fix an SVG focusing crash in IE11 (#12996 ) //<Jifa Jiang>//
- **[bfb12ebb5](https://github.com/facebook/react/commit/bfb12ebb5 )**: delete a couple of redundant lines in performWorkOnRoot() in ReactFiberScheduler.js (#13003 ) //<Nathan Quarles>//
- **[394b17eed](https://github.com/facebook/react/commit/394b17eed )**: Update custom renderer docs //<Dan Abramov>//
- **[188c4252a](https://github.com/facebook/react/commit/188c4252a )**: Fix react-dom ReferenceError requestAnimationFrame in non-browser env (#13000 ) (#13001 ) //<Ivan Babak>//
- **[9cf3733a9](https://github.com/facebook/react/commit/9cf3733a9 )**: update comment in computeAsyncExpiration() to reflect code (#12994 ) //<Nathan Quarles>//
- **[c5a733e1e](https://github.com/facebook/react/commit/c5a733e1e )**: Fix links of docs on the comment (#12795 ) //<Ende93>//
- **[36546b513](https://github.com/facebook/react/commit/36546b513 )**: Set the correct initial value on input range (#12939 ) //<Maxime Nory>//
- **[15767a8f8](https://github.com/facebook/react/commit/15767a8f8 )**: [scheduler] 5/n Error handling in scheduler (#12920 ) //<Flarnie Marchan>//
- **[3118ed9d6](https://github.com/facebook/react/commit/3118ed9d6 )**: Expose unstable_interactiveUpdates on ReactDOM (#12943 ) //<Andrew Clark>//
- **[524a74331](https://github.com/facebook/react/commit/524a74331 )**: Fix for Flow issues in SimpleCacheProvider (#12942 ) //<Flarnie Marchan>//
- **[ae57b125c](https://github.com/facebook/react/commit/ae57b125c )**: [simple-cache-provider] Use LRU cache eviction (#12851 ) //<Andrew Clark>//
- **[e0a03c1b4](https://github.com/facebook/react/commit/e0a03c1b4 )**: Extend input type check in selection capabilities (#12062 ) (#12135 ) //<Spyros Ioakeimidis>//
- **[79a740c6e](https://github.com/facebook/react/commit/79a740c6e )**: Rename variables to remove references to 'global' global (#12931 ) //<Flarnie Marchan>//
- **[ff724d3c2](https://github.com/facebook/react/commit/ff724d3c2 )**: [scheduler] 4/n Allow splitting out `schedule` in fb-www, prepare to fix polyfill issue internally (#12900 ) //<Flarnie Marchan>//
- **[83f76e4db](https://github.com/facebook/react/commit/83f76e4db )**: ForwardRefs supports propTypes (#12911 ) //<Brian Vaughn>//
- **[8aeea5afa](https://github.com/facebook/react/commit/8aeea5afa )**: Do not assign node.value on input creation if no change will occur (#12925 ) //<Nathan Hunzaker>//
- **[aa85b0fd5](https://github.com/facebook/react/commit/aa85b0fd5 )**: Upgrade to Jest 23 (#12894 ) //<Simen Bekkhus>//
- **[61777a78f](https://github.com/facebook/react/commit/61777a78f )**: [scheduler] 3/n Use a linked list instead of map and queue for callback storage (#12893 ) //<Flarnie Marchan>//
- **[e7bd3d59a](https://github.com/facebook/react/commit/e7bd3d59a )**: No longer expose ReactNativeComponentTree (#12904 ) //<Sebastian Markbåge>//
- **[f35d989be](https://github.com/facebook/react/commit/f35d989be )**: TestRenderer warns if flushThrough is passed the wrong params (#12909 ) //<Brian Vaughn>//
- **[557870067](https://github.com/facebook/react/commit/557870067 )**: Record "actual" times for all Fibers within a Profiler tree (alt) (#12910 ) //<Brian Vaughn>//
- **[76e07071a](https://github.com/facebook/react/commit/76e07071a )**: [scheduler] 2/n Adding 'schedule' fixture (#12884 ) //<Flarnie Marchan>//
- **[345e0a71a](https://github.com/facebook/react/commit/345e0a71a )**: Improve tests for 'schedule' module (#12880 ) //<Flarnie Marchan>//
- **[8765d6089](https://github.com/facebook/react/commit/8765d6089 )**: Update bundle sizes for 16.4.0 release //<Andrew Clark>//
- **[d427a563d](https://github.com/facebook/react/commit/d427a563d )**: Updating package versions for release 16.4.0 //<Andrew Clark>//
- **[53852a887](https://github.com/facebook/react/commit/53852a887 )**: add functional components warning about legacy context api (#12892 ) //<Chang Yan>//
- **[fe747a51c](https://github.com/facebook/react/commit/fe747a51c )**: Add React.Timeout to getComponentName (#12890 ) //<Toru Kobayashi>//
- **[c601f7a64](https://github.com/facebook/react/commit/c601f7a64 )**: add siblings Timeout components test case (#12862 ) //<Chang Yan>//
- **[735035837](https://github.com/facebook/react/commit/735035837 )**: add legacy context API warning in strict mode (#12849 ) //<Chang Yan>//
- **[e88579184](https://github.com/facebook/react/commit/e88579184 )**: Fix a regression that caused us to listen to extra events at the top (#12878 ) //<Dan Abramov>//
- **[7c0aca289](https://github.com/facebook/react/commit/7c0aca289 )**: Rollup freeze: false (#12879 ) //<Brian Vaughn>//
- **[33289b530](https://github.com/facebook/react/commit/33289b530 )**: Tests and fixes for 'timing out' behavior (#12858 ) //<Flarnie Marchan>//
- **[ad27845cc](https://github.com/facebook/react/commit/ad27845cc )**: Fix double-firing submit events (#12877 ) //<Sophie Alpert>//
- **[dd5fad296](https://github.com/facebook/react/commit/dd5fad296 )**: Update Flow to 0.70 (#12875 ) //<Dan Abramov>//
- **[13003654e](https://github.com/facebook/react/commit/13003654e )**: Pass "start time" and "commit time" to Profiler callback (#12852 ) //<Brian Vaughn>//
- **[dc3b144f4](https://github.com/facebook/react/commit/dc3b144f4 )**: Treat Rollup "warnings" as errors (#12868 ) //<Dan Abramov>//
- **[d7b9b4921](https://github.com/facebook/react/commit/d7b9b4921 )**: Fix react native example links in README of 'react-reconciler' (#12871 ) //<Kevin (Kun) "Kassimo" Qian>//
- **[9bed4a6ae](https://github.com/facebook/react/commit/9bed4a6ae )**: https in reactProdInvariant text (#12869 ) //<Sophie Alpert>//
- **[47b003a82](https://github.com/facebook/react/commit/47b003a82 )**: Resolve host configs at build time (#12792 ) //<Dan Abramov>//
Release Notes:
[GENERAL] [FEATURE] [React] - React sync for revisions c0fe8d6...ae14317
Reviewed By: bvaughn
Differential Revision: D8458731
fbshipit-source-id: afefaa50685d43e70c8ea85c70d2e29dee311cbb
2018-06-16 00:46:24 -07:00
Tim Yung
83169c95a3
React sync for revisions 0887c7d...bde4b16
...
Reviewed By: fkgozali, acdlite
Differential Revision: D7999962
fbshipit-source-id: 8ef358574244bd76fe5a67a1781d59a70fc9c449
2018-05-15 13:16:57 -07:00
Tim Yung
de11ba2a5e
RN: Fix Type for ReactNative.NativeComponent (1/2)
...
Reviewed By: TheSavior
Differential Revision: D7984814
fbshipit-source-id: 0097819128b7f82267bceeb9d5e1b5057c5129ec
2018-05-13 01:05:56 -07:00
Irene Feng
166264d63b
Back out "React sync for revisions 0887c7d...25dda90"
...
Reviewed By: acdlite
Differential Revision: D7973856
fbshipit-source-id: c9c687651ca752541b80693e2af2f07b31bbabad
2018-05-11 12:17:43 -07:00
Andrew Clark
0125813f21
React sync for revisions 0887c7d...25dda90
...
Reviewed By: sebmarkbage
Differential Revision: D7886956
fbshipit-source-id: 5a94df618ce26dee0876b627fbbaaf0a14a403fe
2018-05-07 11:15:12 -07:00
Rubén Norte
d5e9e55fa3
Remove @providesModule from all modules
...
Summary:
This PR removes the need for having the `providesModule` tags in all the modules in the repository.
It configures Flow, Jest and Metro to get the module names from the filenames (`Libraries/Animated/src/nodes/AnimatedInterpolation.js` => `AnimatedInterpolation`)
* Checked the Flow configuration by running flow on the project root (no errors):
```
yarn flow
```
* Checked the Jest configuration by running the tests with a clean cache:
```
yarn jest --clearCache && yarn test
```
* Checked the Metro configuration by starting the server with a clean cache and requesting some bundles:
```
yarn run start --reset-cache
curl 'localhost:8081/IntegrationTests/AccessibilityManagerTest.bundle?platform=android'
curl 'localhost:8081/Libraries/Alert/Alert.bundle?platform=ios'
```
[INTERNAL] [FEATURE] [All] - Removed providesModule from all modules and configured tools.
Closes https://github.com/facebook/react-native/pull/18995
Reviewed By: mjesun
Differential Revision: D7729509
Pulled By: rubennorte
fbshipit-source-id: 892f760a05ce1fddb088ff0cd2e97e521fb8e825
2018-04-25 07:37:10 -07:00
Brian Vaughn
908e8850b9
Forked RN renderers for FB and OSS (52afbe0...0887c7d)
...
Reviewed By: fkgozali
Differential Revision: D7658727
fbshipit-source-id: 2fdd30694b169d180b40bc1059ecc297b07cd18d
2018-04-18 15:04:53 -07:00
Andrew Chen (Eng)
ff9b3c6517
Display JS component stack in native view exceptions
...
Reviewed By: mdvacca
Differential Revision: D7578033
fbshipit-source-id: 4dc393cddf8487db58cc3a9fefbff220983ba9da
2018-04-17 17:47:38 -07:00
Sebastian Markbage
906dde06b3
React sync for revisions 7a3416f...725c054
...
Reviewed By: bvaughn
Differential Revision: D7565731
fbshipit-source-id: 91d76a11b7c91dab2fb3295418d1372ca9c1b572
2018-04-10 15:57:33 -07:00
Sebastian Markbage
a8e3c7f578
Yolo Delete ReactNativePropRegistry
...
Summary:
Changed StyleSheet.create to be the identity function. We no longer hide it behind an opaque number. Better for types and perf since we don't use it.
I don't really know if we have/need any safer way of rolling this out than just landing it.
It can break if the object passed to StyleSheet.create is mutated afterwards but that isn't a practice anywhere I've seen.
Reviewed By: sophiebits
Differential Revision: D7530023
fbshipit-source-id: bc1afa879c5a5d9cd95cb13bc8ff3347b3622851
2018-04-09 18:46:11 -07:00
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
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
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
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
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
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
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
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
94c565a2c4
Flat ReactNative renderer bundle [WIP]
...
Reviewed By: trueadm
Differential Revision: D5013497
fbshipit-source-id: 1e23b08751b8b6e2dd570ff584c815c8a9b8f35f
2017-05-26 11:03:06 -07:00