-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to latest React Native Version #2
Commits on Feb 9, 2018
-
Stop using GitHub bot commands for now
Summary: Closes #17929 Differential Revision: D6953331 Pulled By: hramos fbshipit-source-id: d7b50b18a2c2e5826ed2af5f5ef08ed9aa2878bf
Configuration menu - View commit details
-
Copy full SHA for b973fe4 - Browse repository at this point
Copy the full SHA b973fe4View commit details -
Fixing Prepack model for latest global.nativeExtensions changes.
Differential Revision: D6943293 fbshipit-source-id: cb67b063b77e8f89712fb437fc5471b7f874c482
Configuration menu - View commit details
-
Copy full SHA for 01a58d1 - Browse repository at this point
Copy the full SHA 01a58d1View commit details -
Use ConcurrentHashMap for handling concurrent Android websockets, and…
Summary: … prevent unknown websocket IDs from crashing on Android (show warning on development builds instead) This PR addresses #3346; an unknown websocket ID should produce a warning during development, but not cause crashes in production RN apps. This PR was created by satya164's request, and was inspired by tanthanh289's suggestion on #3346's thread. On Android, create a websocket using a service like Pusher (`pusher-js` npm package) or manually, and then induce removal of its websocket ID. Result should be a red warning screen during development, and no crash in the app's release variant. [ANDROID] [BUGFIX] [WebSocket] - Prevent unknown websocket IDs from crashing on Android Closes #17884 Differential Revision: D6954038 Pulled By: hramos fbshipit-source-id: b346d80d7568996b8819c0de54552abb534cbfae
Configuration menu - View commit details
-
Copy full SHA for 1a790f8 - Browse repository at this point
Copy the full SHA 1a790f8View commit details
Commits on Feb 10, 2018
-
Clean up unused macros after consolidation
Reviewed By: mzlee Differential Revision: D6954781 fbshipit-source-id: 0ec78e6f7f2780951ac008e9b12f41cfd5441ed5
Configuration menu - View commit details
-
Copy full SHA for e233646 - Browse repository at this point
Copy the full SHA e233646View commit details -
React sync for revisions 4eed18d...467b103
Reviewed By: bvaughn Differential Revision: D6953225 fbshipit-source-id: f96e3cec57cce397d46d49115dd3734a33427992
Configuration menu - View commit details
-
Copy full SHA for 5e80d95 - Browse repository at this point
Copy the full SHA 5e80d95View commit details -
Summary: Closes #17934 Differential Revision: D6956755 Pulled By: hramos fbshipit-source-id: 518171156638effc279f17b38c379e029ed23ba0
Configuration menu - View commit details
-
Copy full SHA for 51b6749 - Browse repository at this point
Copy the full SHA 51b6749View commit details -
Upgrade to ESLint v4.17.0 (plus update related deps)
Reviewed By: adamjernst Differential Revision: D6956725 fbshipit-source-id: d223aa238dbb67190a1c244c7d482fc95005ccb0
Configuration menu - View commit details
-
Copy full SHA for bba19e8 - Browse repository at this point
Copy the full SHA bba19e8View commit details -
Fix ESLint upgrade "parsing error"
Reviewed By: adamjernst Differential Revision: D6959356 fbshipit-source-id: 77c61998f23a6acd7cdfe2c87d8760a23d957800
Configuration menu - View commit details
-
Copy full SHA for 9d21496 - Browse repository at this point
Copy the full SHA 9d21496View commit details
Commits on Feb 12, 2018
-
Update DevLoadingView to Support iPhone X
Summary: The current implementation of DevLoadingView for iPhone currently gives a static height of `22` and does not take into account iPhoneX screen dimensions. Devices: All iPhone devices currently available with Xcode v9.2 SDK: 8.1, 9, 10, 11 Validate resize only occurs on iPhone X devices and others remain consistent. Before: ![feb-10-2018 12-30-20](https://user-images.githubusercontent.com/1743953/36065313-7b41f2ea-0e5e-11e8-87f2-928e26536077.gif) After: ![feb-10-2018 12-28-15](https://user-images.githubusercontent.com/1743953/36065317-848e4f7e-0e5e-11e8-8aab-70cb5db32f31.gif) [GENERAL][ENHANCEMENT][{React}] - Improvements to DevLoadingView for iPhone X Closes #17936 Differential Revision: D6962962 Pulled By: shergin fbshipit-source-id: e11d9386544fe19a9195e22a03e12f64e934cad7
Configuration menu - View commit details
-
Copy full SHA for 47b36d3 - Browse repository at this point
Copy the full SHA 47b36d3View commit details -
Reimagining of RCTShadowView layout API
Summary: This is reimagining of interoperability layer between Yoga and ShadowViews (at least in Yoga -> RN part). Goals: * Make it clear and easy. * Make clear separation between "what layout what", now parent always layout children, noone layout itself. * Make possible to interleave Yoga layout with custom imperative layout (may be used in SafeAreaView, Text, Modal, InputAccessoryView and so on). Reviewed By: mmmulani Differential Revision: D6863654 fbshipit-source-id: 5a6a933874f121d46f744aab99a31ae42ddd4a1b
Configuration menu - View commit details
-
Copy full SHA for f91f7d9 - Browse repository at this point
Copy the full SHA f91f7d9View commit details -
Summary: Every `job` is run in a separate container and so, `checkout` step is required for the Git host to be added to `~/.ssh/known_hosts`. Without this step, it will timeout after 10 minutes waiting for you to add (yes) or reject (no) from known hosts (we get this prompt when we checkout from a host for the very first time). Closes #17956 Differential Revision: D6968130 Pulled By: hramos fbshipit-source-id: 6d62166fd375f8f408cf5f18b188f841d035d97f
Configuration menu - View commit details
-
Copy full SHA for f7729a5 - Browse repository at this point
Copy the full SHA f7729a5View commit details -
React sync for revisions 467b103...a634e53
Reviewed By: flarnie Differential Revision: D6965585 fbshipit-source-id: 48c20d0010f4daf83272a36b3bdaca94493ab8fa
Configuration menu - View commit details
-
Copy full SHA for bedaaa1 - Browse repository at this point
Copy the full SHA bedaaa1View commit details
Commits on Feb 13, 2018
-
Fix localization crash in DevSettingsActivity
Differential Revision: D6970534 fbshipit-source-id: da1df549b6157e5ec684cf4eed5f411740a73ed0
Configuration menu - View commit details
-
Copy full SHA for 427e464 - Browse repository at this point
Copy the full SHA 427e464View commit details -
Add UTFSequence module for common unicode usage
Summary: A collection of Unicode sequences for various characters and emoji. - More explicit than using the sequences directly in code. - Source code should be limitted to ASCII. - Less chance of typos. Reviewed By: TheSavior Differential Revision: D6969065 fbshipit-source-id: c11ec96b74f5dfa7c624a3c53f3c29f6284a82b3
Configuration menu - View commit details
-
Copy full SHA for 54870e0 - Browse repository at this point
Copy the full SHA 54870e0View commit details -
Reviewed By: TheSavior Differential Revision: D6945233 fbshipit-source-id: 9630a72e4a7c88ca282392c374ca88326f282713
Configuration menu - View commit details
-
Copy full SHA for 4d0ee37 - Browse repository at this point
Copy the full SHA 4d0ee37View commit details -
Fix duplicate var name declaration
Reviewed By: rafeca Differential Revision: D6965150 fbshipit-source-id: 332c8202f350e2014fedb9790f3d895222fb4f8d
Configuration menu - View commit details
-
Copy full SHA for 6893a26 - Browse repository at this point
Copy the full SHA 6893a26View commit details -
Uses a single code path to link and unlink all platforms
Summary: This commit removes special cases for linking iOS and Android platforms. A previous commit opened up link and other commands for other platforms to provide their own behaviors. It left special cases in tact for iOS and Android. This PR removes the special case. - Added jest tests related to the link command. - Ran the `link` and `unlink` commands for iOS and Android and confirmed no changes. #17745 <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> [CLI][FEATURE][local-cli/link/link.js] - Removes special cases for linking in iOS and Android. Closes #17961 Differential Revision: D6975951 Pulled By: hramos fbshipit-source-id: 8dd5da35619e2124ce4b3b18db8b694757792363
Configuration menu - View commit details
-
Copy full SHA for 1673c57 - Browse repository at this point
Copy the full SHA 1673c57View commit details -
Reviewed By: cpojer Differential Revision: D6976161 fbshipit-source-id: 0cf20f4b2372997a8aac41cc07a9bdd641a93ad4
Configuration menu - View commit details
-
Copy full SHA for b1d8af4 - Browse repository at this point
Copy the full SHA b1d8af4View commit details -
Forward VM version to inspector
Reviewed By: bnham Differential Revision: D6938018 fbshipit-source-id: c79853ddf835acab86a16ebd539874d29d3aa60a
Configuration menu - View commit details
-
Copy full SHA for ad2d9e7 - Browse repository at this point
Copy the full SHA ad2d9e7View commit details -
Add disabled tests to CircleCI config
Summary: These tests have not run for one reason or another since the migration from Travis. They are not passing, and are commented out to avoid flagging new PRs as breaking. These tests need to be fixed and re-enabled ASAP. Closes #17959 Differential Revision: D6976781 Pulled By: hramos fbshipit-source-id: 712a09877d0597c12cafa741779b471680b7d2db
Configuration menu - View commit details
-
Copy full SHA for cc6d093 - Browse repository at this point
Copy the full SHA cc6d093View commit details -
✨ Colorize filenames with conflicts when upgrading
Summary: Visually show files merged with conflicts when running `react-native-git-upgrade`. <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> After running `react-native-git-upgrade`, files with conflicts are not immediately recognised visually. With this patch, files with conflicts are highlighted in red. ![image](https://user-images.githubusercontent.com/771989/36086385-fc183baa-1006-11e8-8862-0867b82b7ec1.png) <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> [CLI] [ENHANCEMENT] [react-native-git-upgrade/cliEntry.js] - Print files with conflicts in red. Closes #17947 Differential Revision: D6977042 Pulled By: hramos fbshipit-source-id: 3c67561ea3acbee227a7a0cf42857af4fb75c75c
Configuration menu - View commit details
-
Copy full SHA for e53a8f7 - Browse repository at this point
Copy the full SHA e53a8f7View commit details -
RNTester http_server send cookie fix
Summary: Signed-off-by: Evan J Brunner <[email protected]> <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> Motivation can be found in #17899 This `RNTester/js/http_test_server.js` is part of a internal websocket test suite / devtool. Can be tested with `curl -D - localhost:5556` observing that the `Set-Cookie: wstest=OK; Path=\` header is present, and the service throws no exceptions.. etc [INTERNAL][MINOR][./RNTester/js/http_test_server.js] - fixed set cookie with connect framework <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes #17900 Differential Revision: D6977087 Pulled By: hramos fbshipit-source-id: af6205343fccf69c57e0c26a85a5b04d61288a23
Configuration menu - View commit details
-
Copy full SHA for 03e6d3e - Browse repository at this point
Copy the full SHA 03e6d3eView commit details -
Extend Navigation to support "is_fabric" param from native
Reviewed By: fkgozali Differential Revision: D6955828 fbshipit-source-id: 1a77b652a7e372acf961a0b0772ae93a999b90b1
Configuration menu - View commit details
-
Copy full SHA for 331cc79 - Browse repository at this point
Copy the full SHA 331cc79View commit details -
Fix: incorrect line-height calculation
Summary: There seems to be a rounding error in the android code for line height, so that for some fonts and at some combinations of line height and font size the actual height of the elements seems to be slightly too short. I've identified one issue that I mentioned here #10712 (comment) that could at least explain some of the problem. That when the line-height minus the original sum of the absolute value of top and bottom from the metrics, happens to be an odd number, the division by two causes a rounding error of 1, so that the actual line height is 1pt less than it should. The fix uses floating point division instead of integer division, and rounds (arbitrarily) the negative values up and the positive values down so that the total is still the correct for odd numbers. It turns out that only ascent and descent is used to give the actual line-height between lines in the same text-element. The top and bottom values are only used for padding the top and bottom of the text. So when the line-height is greater than the font size and the extra padding this PR sets the ascent and descent to the same value as the top and bottom respectively. I've renamed the shouldIncreaseAllMetricsProportionally test to evenLineHeightShouldIncreaseAllMetricsProportionally and added an extra assertion to check that bottom-top still equals the line height. Added another test oddLineHeightShouldAlsoWork that is similar but uses an odd number for the line height to test that it still works with odd numbers. This test only uses the sum of the values so that it's indifferent to what value the implementation chooses to round up or down. Improvement on #16448 Fix line-height calculation on Android. | Before | After | | ------------- |-------------| | ![without fix](https://user-images.githubusercontent.com/2144849/36150230-4404a0cc-10c3-11e8-8880-4ab84339c741.png) | ![actual fix](https://user-images.githubusercontent.com/2144849/36156620-eb496d0e-10d7-11e8-8bd1-1cb536a38fbf.png) | (All three columns have font size 16 and lineHeight: 32. The first one is has fixed height 9*32, the second is 9 Text elements, the last is one text element with lots of text limited to 9 lines, so they should be the same height. ) Closes #17952 Differential Revision: D6980333 Pulled By: hramos fbshipit-source-id: 0a501358cfbf7f139fca46056d0d972b1daf6ae3
Configuration menu - View commit details
-
Copy full SHA for 74e54cb - Browse repository at this point
Copy the full SHA 74e54cbView commit details -
Summary: Don't want anyone accidentally mutating it. Also make deepFreezeAndThrowOnMutationInDev easier to use with nice flow typing. Reviewed By: yungsters Differential Revision: D6974089 fbshipit-source-id: 0f90e7939cb726893fa353a4f2a6bbba701205bc
Configuration menu - View commit details
-
Copy full SHA for d220118 - Browse repository at this point
Copy the full SHA d220118View commit details
Commits on Feb 14, 2018
-
Bundle download progress on Android
Summary: Android equivalent of #15066 Tested that download progress shows up properly when reloading the app. [ANDROID] [FEATURE] [DevSupport] - Show bundle download progress on Android Closes #17809 Differential Revision: D6982823 Pulled By: hramos fbshipit-source-id: da01e42b8ebb1c603f4407f6bafd68e0b6b3ecba
Configuration menu - View commit details
-
Copy full SHA for d06e143 - Browse repository at this point
Copy the full SHA d06e143View commit details -
Reviewed By: TheSavior Differential Revision: D6983446 fbshipit-source-id: c8ce4b1c7836654910db84c9cd4b6d0bcec8ae27
Configuration menu - View commit details
-
Copy full SHA for 4761d5a - Browse repository at this point
Copy the full SHA 4761d5aView commit details -
allow installing extra JS binding via the bridge
Reviewed By: mdvacca Differential Revision: D6957397 fbshipit-source-id: 172905861fbb1c9ed45149e33b406c28ad616cd7
Configuration menu - View commit details
-
Copy full SHA for e165d0d - Browse repository at this point
Copy the full SHA e165d0dView commit details -
Add JS binding for FabricUIManager - iOS
Reviewed By: sebmarkbage Differential Revision: D6934518 fbshipit-source-id: 1f626f79a74fb199925644e8b16238aa17d40e1f
Configuration menu - View commit details
-
Copy full SHA for 1aeb925 - Browse repository at this point
Copy the full SHA 1aeb925View commit details -
iOS: allow getting an instance of a js-bound module via the bridge
Reviewed By: sebmarkbage Differential Revision: D6982785 fbshipit-source-id: 7bbcc5416e1d1a3a577328349a7c18af5c0f8577
Configuration menu - View commit details
-
Copy full SHA for 5f48bd8 - Browse repository at this point
Copy the full SHA 5f48bd8View commit details -
Fixed a bug with positioning of nested views inside <Text>
Summary: Fixing of recent regression in layout system. Conseptually, a superview should define frames of child views. Reviewed By: mmmulani Differential Revision: D6980128 fbshipit-source-id: e267e966fd46af28db1d3d40939110040b74e33f
Configuration menu - View commit details
-
Copy full SHA for 7d20de4 - Browse repository at this point
Copy the full SHA 7d20de4View commit details -
Verify that the component passed to createAnimatedComponent is not fu…
…nctional Summary: Stateless functional components don't support refs and we need that for the component to work, it used to crash with this error message: `undefined is not an object (evaluating 'this._component.getScrollableNode')`. This makes it clear what the issue is. Fixes some of the errors in #10635, not sure if it fixes all the cases described in the issue though. **Test plan** Tested that passing a component with createClass or extends Component works but passing a function causes an error. [GENERAL] [ENHANCEMENT] [Animated] - Verify that the component passed to createAnimatedComponent is not functional Closes #15019 Differential Revision: D6988096 Pulled By: sahrens fbshipit-source-id: ec0ffa763245e786f44b4a1d56c0738876c25782
Configuration menu - View commit details
-
Copy full SHA for 10b642a - Browse repository at this point
Copy the full SHA 10b642aView commit details -
Pass port when running on device (fix #17973)
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> Building for iOS device `react-native run-ios --device [id]` fails since port is not passed. This is a blocker for us and prevents us from updating to latest React Native stable. I've tested this in our app and also in fresh app using RN master and verified that it works. None. [CLI] [BUGFIX] [local-cli/runIOS/runIOS.js] - Pass metro port when running on device <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes #17983 Differential Revision: D6988299 Pulled By: hramos fbshipit-source-id: 5169706600f87f13b9c9c105eb7d6db7a40194f1
Configuration menu - View commit details
-
Copy full SHA for f8fee0a - Browse repository at this point
Copy the full SHA f8fee0aView commit details -
Fix enableBabelRCLookup option in new CLI + global cache script
Reviewed By: BYK Differential Revision: D6977885 fbshipit-source-id: 50245e046c7639f9fb4022a9cc5974d50831524c
Configuration menu - View commit details
-
Copy full SHA for 96ec2dc - Browse repository at this point
Copy the full SHA 96ec2dcView commit details -
Pass cacheVersion param via the new API
Reviewed By: BYK Differential Revision: D6980337 fbshipit-source-id: 72c01136b6720390ffec8593f0375c8756dc1d4a
Configuration menu - View commit details
-
Copy full SHA for 828cd78 - Browse repository at this point
Copy the full SHA 828cd78View commit details -
Support resumes without overriding the back handler
Differential Revision: D6982515 fbshipit-source-id: 5483f6c677c6653e51f6311386f31f5be6ed0e00
Configuration menu - View commit details
-
Copy full SHA for c281f7a - Browse repository at this point
Copy the full SHA c281f7aView commit details -
Expose methods of persistent yoga for Java
Reviewed By: priteshrnandgaonkar Differential Revision: D6918605 fbshipit-source-id: e424c78680c04e21154ebe21405671c4e90f6529
Configuration menu - View commit details
-
Copy full SHA for ecc08ad - Browse repository at this point
Copy the full SHA ecc08adView commit details -
Allow installing JS binding via the RN Android bridge
Reviewed By: fkgozali Differential Revision: D6979072 fbshipit-source-id: 8b4ac3769496a6a6fe3dd9ee2aac64b66604c413
Configuration menu - View commit details
-
Copy full SHA for db391a5 - Browse repository at this point
Copy the full SHA db391a5View commit details
Commits on Feb 15, 2018
-
Reviewed By: priteshrnandgaonkar Differential Revision: D6935971 fbshipit-source-id: a2008f1eb849b5074585b48699b7de56d5ac90d4
Configuration menu - View commit details
-
Copy full SHA for 51def5e - Browse repository at this point
Copy the full SHA 51def5eView commit details -
Reviewed By: BYK Differential Revision: D6978514 fbshipit-source-id: 3c6be52d38fedbe849dee6319bb2e4d7a97297c9
Configuration menu - View commit details
-
Copy full SHA for 991b7ab - Browse repository at this point
Copy the full SHA 991b7abView commit details -
Extract polyfillGlobal from InitializeCore
Reviewed By: jeanlauliac Differential Revision: D6987657 fbshipit-source-id: 8762732de671418520376a98bdd724bbb24e4e36
Configuration menu - View commit details
-
Copy full SHA for f7f5dc6 - Browse repository at this point
Copy the full SHA f7f5dc6View commit details -
Fix main size calculation from the aspect ratio
Summary: When the following conditions are met, the main size become smaller by the margins in the main axis. * The aspect ratio is defined * The main size is not defined * The cross size is defined * The main margin is defined This is because the main margin size is not included when calculating the main size from the aspect ratio. Closes facebook/yoga#715 Reviewed By: emilsjolander Differential Revision: D6998988 Pulled By: priteshrnandgaonkar fbshipit-source-id: f6f69c47ece17bd7c5e41517b96032bf0c149356
Configuration menu - View commit details
-
Copy full SHA for f751c34 - Browse repository at this point
Copy the full SHA f751c34View commit details -
Fold .eslintrc's into the root eslintrc
Reviewed By: TheSavior Differential Revision: D6997050 fbshipit-source-id: 81e45d24343cca8336adb0de43bd766899ff03b6
Configuration menu - View commit details
-
Copy full SHA for 59401f8 - Browse repository at this point
Copy the full SHA 59401f8View commit details -
Reviewed By: fkgozali Differential Revision: D6989838 fbshipit-source-id: f092901cacc0c3eb89b08c6ac0384c4d5f6e6cfe
Configuration menu - View commit details
-
Copy full SHA for c82b9f7 - Browse repository at this point
Copy the full SHA c82b9f7View commit details -
Extend installFabric method to access UIFabricModule from C++
Reviewed By: sebmarkbage Differential Revision: D7001974 fbshipit-source-id: a49c6e634ac710805fb37a50a61c2cf2e248b8a7
Configuration menu - View commit details
-
Copy full SHA for ad4f54f - Browse repository at this point
Copy the full SHA ad4f54fView commit details
Commits on Feb 16, 2018
-
Demo illustrated
base-line
metric exposureSummary: A demo illustrated `base-line` metric exposure to layout system was added to RNTester. And currently it shows that we don't support it at all. https://cl.ly/1F0B0D430U3e Reviewed By: sahrens Differential Revision: D6957056 fbshipit-source-id: 28776300fc8e11950ac5ba1a5416f68d31d4e9fb
Configuration menu - View commit details
-
Copy full SHA for 7630a61 - Browse repository at this point
Copy the full SHA 7630a61View commit details -
base-line
metric exposure for <Text>Summary: Now <Text> exposes base-line metric to Yoga. Before: https://cl.ly/1F0B0D430U3e After: https://cl.ly/0G1Q29450O0y Reviewed By: yungsters Differential Revision: D6957055 fbshipit-source-id: 04c1df693915e294b54e3c33e0aea21611dcc232
Configuration menu - View commit details
-
Copy full SHA for 51b3529 - Browse repository at this point
Copy the full SHA 51b3529View commit details -
base-line
metric exposure for <TextInput>Summary: Now <TextInput> (both bersions) exposes base-line metric to Yoga. Before: https://cl.ly/0G1Q29450O0y After: https://cl.ly/2X103V3O0322 Reviewed By: yungsters Differential Revision: D6957054 fbshipit-source-id: d76d96f56720d710a4230c53beafdb0b2521e8a9
Configuration menu - View commit details
-
Copy full SHA for 0dbe183 - Browse repository at this point
Copy the full SHA 0dbe183View commit details -
Use only native robolectric_test rules.
Reviewed By: adamjernst Differential Revision: D6997829 fbshipit-source-id: 5f8d41a6126f02c9fb9d0fb90d89df28eeea9653
Configuration menu - View commit details
-
Copy full SHA for 574c70e - Browse repository at this point
Copy the full SHA 574c70eView commit details -
Support for animated tracking in native driver
Summary: This PR adds support for Animated tracking to Animated Native Driver implementation on Android and iOS. Animated tracking allows for animation to be started with a "dynamic" end value. Instead of passing a fixed number as end value we can pass a reference to another Animated.Value. Then when that value changes, the animation will be reconfigured to drive the animation to the new destination point. What is important is that animation will keep its state in the process of updating "toValue". That is if it is a spring animation and the end value changes while the previous animation still hasn't settled the new animation will start from the current position and will inherit current velocity. This makes end value transitions very smooth. Animated tracking is available in JS implementation of Animated library but not in the native implementation. Therefore until now, it wasn't possible to utilize native driver when using animated tracking. Offloading animation from JS thread turns out to be crucial for gesture driven animations. This PR is a step forward towards feature parity between JS and native implementations of Animated. Here is a link to example video that shows how tracking can be used to implement chat heads effect: https://twitter.com/kzzzf/status/958362032650244101 In addition this PR fixes an issue with frames animation driver on Android that because of rounding issues was taking one extra frame to start. Because of that change I had to update a number of Android unit tests that were relying on that behavior and running that one additional animation step prior to performing checks. As a part of this PR I'm adding three unit tests for each of the platforms that verifies most important aspects of this implementation. Please refer to the code and look at the test cases top level comments to learn what they do. I'm also adding a section to "Native Animated Example" screen in RNTester app that provides a test case for tracking. In the example we have blue square that fallows the red line drawn on screen. Line uses Animated.Value for it's position while square is connected via tracking spring animation to that value. So it is ought to follow the line. When user taps in the area surrounding the button new position for the red line is selected at random and the value updates. Then we can watch blue screen animate to that position. You can also refer to this video that I use to demonstrate how tracking can be linked with native gesture events using react-native-gesture-handler lib: https://twitter.com/kzzzf/status/958362032650244101 [GENERAL][FEATURE][Native Animated] - Added support for animated tracking to native driver. Now you can use `useNativeDriver` flag with animations that track other Animated.Values Closes #17896 Differential Revision: D6974170 Pulled By: hramos fbshipit-source-id: 50e918b36ee10f80c1deb866c955661d4cc2619b
Configuration menu - View commit details
-
Copy full SHA for b48f7e5 - Browse repository at this point
Copy the full SHA b48f7e5View commit details -
Dirty text shadow nodes on UIManager queue after multiplier changes
Summary: Letting them fire on whatever queue we get the notification from throws an assert. Reviewed By: shergin Differential Revision: D7002789 fbshipit-source-id: 669474af1a07f0df6784b69b54afe0152c1ba3c4
Configuration menu - View commit details
-
Copy full SHA for cff522d - Browse repository at this point
Copy the full SHA cff522dView commit details -
Disable font scaling when an explicit font handler is set
Reviewed By: sahrens Differential Revision: D7003464 fbshipit-source-id: f36ff344c50a9c63af6c852138041c1c918259c8
Configuration menu - View commit details
-
Copy full SHA for f96dfb9 - Browse repository at this point
Copy the full SHA f96dfb9View commit details -
Extend the FabricUIManagerModule class to integrate with JSI/JSC in A…
…ndroid Reviewed By: sebmarkbage Differential Revision: D7005419 fbshipit-source-id: 6e65be5a922ddb29fde965f5df779cc92a996ecf
Configuration menu - View commit details
-
Copy full SHA for 1f7a48f - Browse repository at this point
Copy the full SHA 1f7a48fView commit details -
Summary: This should fix our current Android test failures. Closes #18002 Differential Revision: D7014218 Pulled By: hramos fbshipit-source-id: 2933baf9fd05f3ad33306c3ca7b62da8af568db0
Configuration menu - View commit details
-
Copy full SHA for 617362b - Browse repository at this point
Copy the full SHA 617362bView commit details -
Exclude jsbundle files from VCS
Summary: jsbundle files can be generated, and are quite large and therefore, I think should be excluded from being committed to the repo. [ GENERAL ][ MINOR ][local-cli/templates/_gitignore] - Included a new entry to ignore jsbundle files Closes #17888 Differential Revision: D6977064 Pulled By: hramos fbshipit-source-id: 9c7803004f3f4ec59cba3017213f68fba8225dbf
Configuration menu - View commit details
-
Copy full SHA for 2123108 - Browse repository at this point
Copy the full SHA 2123108View commit details -
tvOS: TV nav event emitter should check for bridge
Summary: When running with the packager in the tvOS simulator, reloading from the packager hits an assert in `RCTEventEmitter`, causing a crash. The solution is for `RCTTVNavigationEventEmitter` to check for the existence of the bridge before attempting to send an event. Manual testing. [IOS] [BUGFIX] [RCTTVNavigationEventEmitter.m] - Fix crash when reloading in tvOS Closes #17797 Differential Revision: D7014975 Pulled By: hramos fbshipit-source-id: 0bf766e87267ca8592ff0cc0b3cb4621a8e8f9b5
Configuration menu - View commit details
-
Copy full SHA for 3a3d884 - Browse repository at this point
Copy the full SHA 3a3d884View commit details -
Change irrelevant Products path in ./local-cli/runIOS/runIOS.js
Summary: #7308 and many of the same Seems like xcode cli tool isn't create ./build directory any more but place Products right inside ./Build (may check while creating single view ios application in XCode) * edit hardcoded path to {appName}.app <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> Command `$ react-native run-ios` is often lead to `Entry, ":CFBundleIdentifier", Does Not Exist` I find out how to fix it in current version of RN and Xcode cli tools Just try to do `$ react native init {appName}` and then `$ react native run-ios` if everything fine it means my approach is right :) <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes #17963 Differential Revision: D7014984 Pulled By: hramos fbshipit-source-id: da62f130e6ebf7d3acd09d36525838d5c9684e75
Configuration menu - View commit details
-
Copy full SHA for 5447ca6 - Browse repository at this point
Copy the full SHA 5447ca6View commit details
Commits on Feb 17, 2018
-
Better Android Gradle Plugin 3.x integration
Summary: Better integration with the Android Gradle-based build process, especially the changes introduced by the [Android Gradle Plugin 3.x and AAPT2](https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html). Fixes #16906, the `android.enableAapt2=false` workaround is no longer required. Bases the task generation process on the actual application variants present in the project. The current manual process of iterating build types and product flavors could break down when more than one dimension type is present (see https://developer.android.com/studio/build/build-variants.html#flavor-dimensions). This also exposes a very basic set of properties in the build tasks, so that other tasks can more reliably access them: ```groovy android.applicationVariants.all { variant -> // This is the generated task itself: def reactBundleTask = variant.bundleJsAndAssets // These are the outputs by type: def resFileCollection = reactBundleTask.generatedResFolders def assetsFileCollection = reactBundleTask.generatedAssetsFolders } ``` I've tested various combinations of product flavors and build types ([Build Variants](https://developer.android.com/studio/build/build-variants.html)) to make sure this is consistent. This is a port of what we're currently deploying to our CI process. [ ANDROID ] [ BUGFIX ] [ react.gradle ] - Support Android Gradle Plugin 3.x and AAPT2 [ ANDROID ] [ FEATURE ] [ react.gradle ] - Expose the bundling task and its outputs via ext properties Closes #17967 Differential Revision: D7017148 Pulled By: hramos fbshipit-source-id: e52b3365e5807430b9caced51349abf72332a587
Configuration menu - View commit details
-
Copy full SHA for d16ff3b - Browse repository at this point
Copy the full SHA d16ff3bView commit details -
Fix pinch crash in touch-responsive views.
Summary: Fork and rebase of gillessed's PR #13166 which has gotten stale. From original PR: Motivation (required) Multiple react native developer (including myself) have run into a crash with the react-native-photo-view library (and possibly others). The common solution to this problem lies in the underlying java code, and thus requires a change in the react native source. The stack trace I am getting is the same as listed here alwx/react-native-photo-view#15. There was a PR to fix this (#12085) but it was closed. In response to the comments there, in my PR, I do log the exceptions. I don't think we can get any closer to the exception because in the next level of the stack trace, we are in the android sdk code. Looking at some stack overflow pages and the android bug tracker, it seems that this is the common solution to this bug, and does not cause any impact any functionality. https://code.google.com/p/android/issues/list?can=1&q=pointerindex+out+of+range&colspec=ID+Status+Priority+Owner+Summary+Stars+Reporter+Opened&cells=tiles Test Plan (required) I have manually tested this by compiling react native android from source and have confirmed the exception still gets hit and logged, but does not cause the app to terminate. Closes #17167 Differential Revision: D7014296 Pulled By: hramos fbshipit-source-id: 06b4a31062a591b726d2021e877d16f49881dcfd
Configuration menu - View commit details
-
Copy full SHA for 67c3ad4 - Browse repository at this point
Copy the full SHA 67c3ad4View commit details -
Update license headers for MIT license
Summary: Includes React Native and its dependencies Fresco, Metro, and Yoga. Excludes samples/examples/docs. find: ^(?:( *)|( *(?:[\*~#]|::))( )? *)?Copyright (?:\(c\) )?(\d{4})\b.+Facebook[\s\S]+?BSD[\s\S]+?(?:this source tree|the same directory)\.$ replace: $1$2$3Copyright (c) $4-present, Facebook, Inc.\n$2\n$1$2$3This source code is licensed under the MIT license found in the\n$1$2$3LICENSE file in the root directory of this source tree. Reviewed By: TheSavior, yungsters Differential Revision: D7007050 fbshipit-source-id: 37dd6bf0ffec0923bfc99c260bb330683f35553e
Configuration menu - View commit details
-
Copy full SHA for 1490ab1 - Browse repository at this point
Copy the full SHA 1490ab1View commit details -
Summary: Manual changes. Reviewed By: TheSavior, yungsters Differential Revision: D7012152 fbshipit-source-id: de7459be3db13c687868b45059856f125c4f2eb1
Configuration menu - View commit details
-
Copy full SHA for 26684cf - Browse repository at this point
Copy the full SHA 26684cfView commit details -
@allow-large-files Upgrade xplat/js to Flow v0.66
Reviewed By: gabelevi Differential Revision: D7016717 fbshipit-source-id: 2bd2fd67074ba5d405ecd63a1aeb37354f8634c9
Configuration menu - View commit details
-
Copy full SHA for da3424c - Browse repository at this point
Copy the full SHA da3424cView commit details -
Fix #17610, Add fixtures to metro blacklist
Summary: Include a default blacklist into the build settings to prevent processing of incorrect fixture files by Metro. <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> Fix #17610 issue, preventing metro from processing fixture files 1. Have a working demo 2. Install https://github.com/oblador/react-native-vector-icons 3. Use in a component 4. Start the app 5. The app starts successfully and display the icons [ GENERAL ] [ BUGFIX ] [local-cli/util/Config.js] - Add default file blacklist Closes #17672 Differential Revision: D7014627 Pulled By: hramos fbshipit-source-id: 20974e6fdd0977eeeb1048c29c9d621c803c26e9
Configuration menu - View commit details
-
Copy full SHA for 54dc11a - Browse repository at this point
Copy the full SHA 54dc11aView commit details
Commits on Feb 19, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4454fdc - Browse repository at this point
Copy the full SHA 4454fdcView commit details
Commits on Feb 20, 2018
-
RN: Remove React Stack Systrace Logic
Reviewed By: sophiebits Differential Revision: D7027263 fbshipit-source-id: f4eb3fab402eda337f464e4ebb0771202a9b93f2
Configuration menu - View commit details
-
Copy full SHA for 973ef97 - Browse repository at this point
Copy the full SHA 973ef97View commit details -
Move YGStyle to seperate file and add constructors
Reviewed By: emilsjolander Differential Revision: D7016575 fbshipit-source-id: eb28df0ffb4cc813b23edaff80d7d4ebc56ce6af
Configuration menu - View commit details
-
Copy full SHA for b9991d3 - Browse repository at this point
Copy the full SHA b9991d3View commit details -
Reviewed By: emilsjolander Differential Revision: D7019653 fbshipit-source-id: 5a2655626db0915fcebe7d4517e2d0b2e2484460
Configuration menu - View commit details
-
Copy full SHA for c75ce81 - Browse repository at this point
Copy the full SHA c75ce81View commit details -
Added default constructor for YGCachedMeasurement
Reviewed By: emilsjolander Differential Revision: D7020337 fbshipit-source-id: e084e234bf6a2ae22e53e739959683abca169b88
Configuration menu - View commit details
-
Copy full SHA for 22cf815 - Browse repository at this point
Copy the full SHA 22cf815View commit details
Commits on Feb 21, 2018
-
Replaced unstable_AsyncComponent with unstable_AsyncMode
Reviewed By: gaearon Differential Revision: D7025510 fbshipit-source-id: 1aff984ce7479e5fdff71259d0f552193a6cdcea
Configuration menu - View commit details
-
Copy full SHA for 9dd7608 - Browse repository at this point
Copy the full SHA 9dd7608View commit details -
Introduce cloning mechanism for React Shadow Node
Reviewed By: achen1 Differential Revision: D7018869 fbshipit-source-id: beca45b1df9602ebbc9172091b24a2bf44e103f4
Configuration menu - View commit details
-
Copy full SHA for ad06403 - Browse repository at this point
Copy the full SHA ad06403View commit details -
RN: Remove Animated -> ScrollView -> Animated Cycle
Reviewed By: sahrens Differential Revision: D7027223 fbshipit-source-id: 59924fada0f29a5e2ce1ae9a3694a94cfb26367c
Configuration menu - View commit details
-
Copy full SHA for 8c036ce - Browse repository at this point
Copy the full SHA 8c036ceView commit details -
RCTSurface: Optional sync ShadowView/View registing
Summary: See the comment in code. If we on the main thread on registering time, we can/will break sequentiality of registering and mounting processes doing registration asynchronously. We need this to make sync mouting eventually possible. Reviewed By: fkgozali Differential Revision: D7014176 fbshipit-source-id: 110ad5e5d86e3422eac15c3b1bdb29ae04acd7e6
Configuration menu - View commit details
-
Copy full SHA for b90c1cf - Browse repository at this point
Copy the full SHA b90c1cfView commit details -
Enforcing sequential ordering of creating view and applying props in …
…UIManager Summary: See the comment in code. Reviewed By: fkgozali Differential Revision: D7014177 fbshipit-source-id: c58db856d7701a285564470eb1f024b5012dd451
Configuration menu - View commit details
-
Copy full SHA for 60c0000 - Browse repository at this point
Copy the full SHA 60c0000View commit details -
New UIManager API allowing intercept/delay mounting process
Summary: In some embedding/interop cases (RN inside, something else outside), the interop layer has to have the ability to control (intercept, delay, perform synchronously with another stuff) mounting process. This API allows doing that. Reviewed By: fkgozali Differential Revision: D7014179 fbshipit-source-id: 04036095f7e60a5ff7e69025ff6066fea92eb361
Configuration menu - View commit details
-
Copy full SHA for 402ae2f - Browse repository at this point
Copy the full SHA 402ae2fView commit details -
RCTSurface: Support for synchronous waiting for mounting stage
Summary: So, all initial operations can now be done synchronously (and on the main thread). To do so, instancitate `RCTSurface` object and call `synchronouslyWaitForStage:timeout:` method like that: RCTSurface *surface = [[RCTSurface alloc] initWithBridge:... moduleName:... initialProperties:...]; BOOL success = [surface synchronouslyWaitForStage:RCTSurfaceStageSurfaceDidInitialMounting timeout:timeout]; or RCTSurfaceHostingView *surfaceHostingView = [[RCTSurfaceHostingView alloc] initWithBridge:... moduleName:... initialProperties:...]; BOOL success = [surfaceHostingView.surface synchronouslyWaitForStage:RCTSurfaceStageSurfaceDidInitialMounting timeout:timeout]; Reviewed By: fkgozali Differential Revision: D7014178 fbshipit-source-id: c3c13904a3587ff2a222fa71623c40c8f30bc8af
Configuration menu - View commit details
-
Copy full SHA for b7fbeb2 - Browse repository at this point
Copy the full SHA b7fbeb2View commit details -
Remove unused reference in Text.js
Summary: Previously, the Platform module was used to detect when RCTVirtualText should be used. Recently, this has changed to detecting the availability of a native virtual text component on the UIManager. The import for the Platform module can be deleted. I was cleaning up source code copied in react-native-windows and noticed this reference is no longer used in Text.js. Run jest tests. N/A <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes #18039 Differential Revision: D7042473 Pulled By: hramos fbshipit-source-id: d318cfdfd2d052bd1662ac469dd51633f6d59d17
Configuration menu - View commit details
-
Copy full SHA for 47addd8 - Browse repository at this point
Copy the full SHA 47addd8View commit details -
Implement FabricUIManagerModule in Android
Reviewed By: achen1 Differential Revision: D7031902 fbshipit-source-id: a8d9d505f981ac4268760efa32f4cbc7955aec32
Configuration menu - View commit details
-
Copy full SHA for 4371d1e - Browse repository at this point
Copy the full SHA 4371d1eView commit details -
Mock static methods of TouchableNativeFeedback on iOS
Reviewed By: TheSavior Differential Revision: D7016679 fbshipit-source-id: bd04244eaf876e3ffab4f0c64792769a9ea40abd
Configuration menu - View commit details
-
Copy full SHA for 7dd12a2 - Browse repository at this point
Copy the full SHA 7dd12a2View commit details -
FabricUIManagerModuleTest setup and testCloneNode
Reviewed By: mdvacca Differential Revision: D7037558 fbshipit-source-id: a62617c7e16102cf7d12ecde48a95feec264fa51
Configuration menu - View commit details
-
Copy full SHA for 190e6be - Browse repository at this point
Copy the full SHA 190e6beView commit details
Commits on Feb 22, 2018
-
Summary: This diff allows Metro to throw an error when a configuration file cannot be found, by using a new strict: true option. Reviewed By: rafeca Differential Revision: D6998613 fbshipit-source-id: b704633be18d5c007f1a022fa811d0a74c636fc9
Configuration menu - View commit details
-
Copy full SHA for 13ee1b5 - Browse repository at this point
Copy the full SHA 13ee1b5View commit details -
Upgrade Jest to 22.4.0 to pull fixes for jest-haste-map
Reviewed By: mjesun Differential Revision: D7041111 fbshipit-source-id: 6dbd0cbf7b62a54d0b5f16bbf2fa81332542f14e
Configuration menu - View commit details
-
Copy full SHA for 47e57ef - Browse repository at this point
Copy the full SHA 47e57efView commit details -
Fix ESLint warnings using 'yarn lint --fix'
Summary: Hi! I would like to contribute to React Native, and I am just starting out. I forked the repo and found that it has quite a lot of ESLint warnings – many of which were automatically fixable. This PR is simply the result of running `yarn lint --fix` from the root folder. Most changes are removing trailing spaces from comments. Haven't really done any manual testing, since I haven't done any code changes manually. `yarn test` runs fine, `yarn flow` runs fine, `yarn prettier` is satisfied. N/A [INTERNAL][MINOR][] - Fix ESLint warnings Closes #18047 Differential Revision: D7054948 Pulled By: hramos fbshipit-source-id: d53e692698d1687de5821c3fb5cdb76a5e03b71e
Configuration menu - View commit details
-
Copy full SHA for edb6ca7 - Browse repository at this point
Copy the full SHA edb6ca7View commit details -
More tests for FabricUIManagerModule
Reviewed By: mdvacca Differential Revision: D7045459 fbshipit-source-id: f96758cf04b41836f73b29e62d43a122d955c67a
Configuration menu - View commit details
-
Copy full SHA for cf0193f - Browse repository at this point
Copy the full SHA cf0193fView commit details -
Fix IllegalStateException in looped timing native animation
Summary: This PR fixes regression introduced in #17896 with IllegalStateException being thrown in FrameBasedAnimationDriver. After investigating it seemed that the root cause was the code responsible for looping animations that was setting next frame time by adding the frame interval to the current time. In some circumstances the next frame would run earlier than that and as a result the calculated frame index was negative. Here is the stacktrace as reported by axemclion https://github.com/facebook/react-native/pull/17896/files#r170007224 ``` Caused by: java.lang.IllegalStateException: Calculated frame index should never be lower than 0 at com.facebook.react.animated.FrameBasedAnimationDriver.runAnimationStep(FrameBasedAnimationDriver.java:60) at com.facebook.react.animated.NativeAnimatedNodesManager.runUpdates(NativeAnimatedNodesManager.java:444) at com.facebook.react.animated.NativeAnimatedModule$1.doFrameGuarded(NativeAnimatedModule.java:100) at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29) ``` Run native animated tests suite. Run RNTester and scroll to the loop animation and see it working correctly [ANDROID][BUGFIX][Animated] - Fix exception thrown by timing animation when looping Closes #18061 Differential Revision: D7059335 Pulled By: hramos fbshipit-source-id: b08dfd1398d028eeeabeb11863743666379da374
Configuration menu - View commit details
-
Copy full SHA for ef9d1fb - Browse repository at this point
Copy the full SHA ef9d1fbView commit details
Commits on Feb 23, 2018
-
Fix for #17348, Scrollable failing due to uglify-es
Summary: Fixes #17348 - Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'this._subscribableSubscriptions.forEach') Same existing tests applies, just added extra checks. This patch fixes the issue #17348 [ANDROID] [BUGFIX] [Subscribable] - Fix for #17348 [IOS] [BUGFIX] [Subscribable] - Fix for #17348 Closes #17463 Reviewed By: sahrens Differential Revision: D7062101 Pulled By: TheSavior fbshipit-source-id: 1306f4695ffc8748f674de70740ded09e1e390f7
Configuration menu - View commit details
-
Copy full SHA for b57a78c - Browse repository at this point
Copy the full SHA b57a78cView commit details -
Register ReactRootView into FabricUIManagerModule
Reviewed By: achen1 Differential Revision: D7043902 fbshipit-source-id: fecef5a019dadd3d2802baa20dd8a3711e566ed3
Configuration menu - View commit details
-
Copy full SHA for d352c93 - Browse repository at this point
Copy the full SHA d352c93View commit details -
DevSupportManager
: tagRELOAD
marker with metro hostSummary: Adds the configured metro host to `ReactMarker.logMarker(ReactMarkerConstants.RELOAD)`. This may be used for diagnostics in marker listeners Reviewed By: bnham Differential Revision: D7041086 fbshipit-source-id: 0b0777b1cd4c74b29b9245e925cf7851b24985fa
Configuration menu - View commit details
-
Copy full SHA for e214bb3 - Browse repository at this point
Copy the full SHA e214bb3View commit details -
Reviewed By: mjesun Differential Revision: D7060484 fbshipit-source-id: 91cc7b6d66a2bb99242c144e011eef4393f87e9e
Configuration menu - View commit details
-
Copy full SHA for a29906a - Browse repository at this point
Copy the full SHA a29906aView commit details -
Reviewed By: davidaurelio Differential Revision: D7067140 fbshipit-source-id: a2ae64a8049e5ef883c08f4abbe108401427b0aa
Configuration menu - View commit details
-
Copy full SHA for 8d74af4 - Browse repository at this point
Copy the full SHA 8d74af4View commit details -
react-native: prefer custom source extensions over default extensions
Reviewed By: mjesun Differential Revision: D7066617 fbshipit-source-id: cdde7451cb817d62d6705071752fce0686cf04dc
Configuration menu - View commit details
-
Copy full SHA for 33a893e - Browse repository at this point
Copy the full SHA 33a893eView commit details -
BundleDownloader/DevServerHelper: Close http responses
Reviewed By: amnn Differential Revision: D7067204 fbshipit-source-id: 9b3dde374280b8d7bdc028a14e9218f37cfc87f2
Configuration menu - View commit details
-
Copy full SHA for 87f98bc - Browse repository at this point
Copy the full SHA 87f98bcView commit details -
Reviewed By: sahrens Differential Revision: D7052609 fbshipit-source-id: 740fffa9ad55ccd21347626f9c5dc180fcc4094d
Configuration menu - View commit details
-
Copy full SHA for 446ce49 - Browse repository at this point
Copy the full SHA 446ce49View commit details -
Remove Platform check from WebSocket module
Summary: WebSocket uses the Platform module to check how many arguments for the `close` method should be used. In react-native-windows, we have the same number of arguments for `close` as Android, so we're prevented from using this module as-is because of the platform check (see https://github.com/Microsoft/react-native-windows/blob/master/Libraries/WebSocket/WebSocket.windows.js#L136). By switching to an argument count check, this module becomes more useful cross-platform. If you'd like to keep the platform check, I'm also open to inverting the conditional, e.g., `if (Platform.OS !== 'ios')`. <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> I'd like to minimize the amount of code I need to copy over to react-native-windows for platform-specific overrides. Run jest tests. N/A <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> [GENERAL][MINOR][ENHANCEMENT][Libraries/WebSocket/WebSocket.js] - Better enable cross-platform support of WebSocket.js Closes #18056 Differential Revision: D7070380 Pulled By: TheSavior fbshipit-source-id: 9bfd47654d0bf6f0e07fc799853a206721467525
Configuration menu - View commit details
-
Copy full SHA for b9be289 - Browse repository at this point
Copy the full SHA b9be289View commit details
Commits on Feb 24, 2018
-
JSC bindings for FabricUIManager - Android
Reviewed By: fkgozali Differential Revision: D7054214 fbshipit-source-id: 6275a8a3e2a87dfd851a09392f09658538083483
Configuration menu - View commit details
-
Copy full SHA for 25b0c37 - Browse repository at this point
Copy the full SHA 25b0c37View commit details -
update FabricUIManager to call the right JS object
Reviewed By: sebmarkbage Differential Revision: D7037275 fbshipit-source-id: 6a1d13227910d0cdb99dde4b6c98ed7a20ef9911
Configuration menu - View commit details
-
Copy full SHA for 486ac9d - Browse repository at this point
Copy the full SHA 486ac9dView commit details -
Implement Cloning for ART Views
Reviewed By: achen1 Differential Revision: D7058410 fbshipit-source-id: 394330654be1ab70853f78580c2543e04a3efb7c
Configuration menu - View commit details
-
Copy full SHA for 1b63da7 - Browse repository at this point
Copy the full SHA 1b63da7View commit details -
Update ReactAndroid build script to support gradle 2.3.0
Summary: We updated to Gradle 2.3.0 and our app's build failed. Our app doesn't provide "repositoryUrl" which is intended to be an optional gradle property. However, Gradle 2.3.0 blows up on findProperty('repositoryUrl') when "repositoryUrl" isn't provided: ```` * What went wrong: A problem occurred configuring project ':ContextMenuAndroid'. > Could not resolve all dependencies for configuration ':ContextMenuAndroid:_debugPublish'. > A problem occurred configuring project ':ReactAndroid'. > Could not get unknown property 'repositoryUrl' for project ':ReactAndroid' of type org.gradle.api.Project. ```` To fix this, we now use "project.hasProperty('repositoryUrl')" to safely detect the presence of the optional "repositoryUrl" property. Since I cannot check it with your build environment, I've created a small demo to show that "project.hasProperty" properly detects the presence of the gradle property "repositoryUrl". I edited "getRepositoryUrl" to throw an exception if "repositoryUrl" is set: ```` def getRepositoryUrl() { if (project.hasProperty('repositoryUrl')) throw new GradleException(property('repositoryUrl')) return project.hasProperty('repositoryUrl') ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' } ```` Then I ran gradle with "repositoryUrl" set like this (passing the property): ```` ./gradlew -PrepositoryUrl=blah assembleDebug ```` As expected, it detected that "repositoryUrl" was set and threw an exception: ```` * What went wrong: A problem occurred configuring project ':ContextMenuAndroid'. > Could not resolve all dependencies for configuration ':ContextMenuAndroid:_debugPublish'. > A problem occurred configuring project ':ReactAndroid'. > blah ```` The same issue has been reported before - #14811, #14810 Minor changes in the Android build script Closes #18075 Differential Revision: D7077788 Pulled By: hramos fbshipit-source-id: ecfbab29d0632e7eecb3c6a247df39bc7616653e
Configuration menu - View commit details
-
Copy full SHA for d8bb990 - Browse repository at this point
Copy the full SHA d8bb990View commit details -
added C++ setup for FabricUIManager
Reviewed By: shergin Differential Revision: D7077312 fbshipit-source-id: e284c151438eb4d1f67a8386580ab54e3dce7c17
Configuration menu - View commit details
-
Copy full SHA for 0ee0317 - Browse repository at this point
Copy the full SHA 0ee0317View commit details -
Fix
onLayout
prop for TextInput on AndroidSummary: When the `autogrow` prop was removed from `TextInput` on Android, the `_onLayout` helper method was removed. This helper method implemented the hook required to make `autogrow` work, then dispatched the `onLayout` event to the handler in `this.props`. This change points passes the `onLayout` handler from `this.props` directly to the inner component. <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> I was updating copied code in react-native-windows and noticed this bug. Run jest tests. N/A <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> [ANDROID][MINOR][BUGFIX] [TextInput] - Fix `onLayout` prop for TextInput on Android Closes #18040 Differential Revision: D7078736 Pulled By: hramos fbshipit-source-id: 798530729d7f0ee1ebb59f698af4d4b6ff43928b
Configuration menu - View commit details
-
Copy full SHA for 8a073c1 - Browse repository at this point
Copy the full SHA 8a073c1View commit details
Commits on Feb 25, 2018
-
Fixed problem in Text measurent on iOS
Summary: See the comment it code. Reviewed By: mmmulani Differential Revision: D7074168 fbshipit-source-id: e6eda9a47552142ccb0ba8e7bd9a103b0cb4f9f9
Configuration menu - View commit details
-
Copy full SHA for a534672 - Browse repository at this point
Copy the full SHA a534672View commit details
Commits on Feb 26, 2018
-
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> This ensures that errors are actually noticed in case it is not possible to create the directory. This will also throw an error when used with the upcoming Node.js 10.x because there is no callback. Refs: nodejs/node#18668 [CLI][MINOR][local-cli/library/library.js] - Use sync fs.mkdir for error handling <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes #18084 Differential Revision: D7083122 Pulled By: shergin fbshipit-source-id: a13b64e57860e1ab2c15e0c008211dc0dca3b2d2
Configuration menu - View commit details
-
Copy full SHA for d2817f4 - Browse repository at this point
Copy the full SHA d2817f4View commit details -
Add missing mock for AppState (removeEventListener)
Summary: I am testing with Jest a component that use [AppState.removeEventListener](https://facebook.github.io/react-native/docs/appstate.html#removeeventlistener) and I am currently facing a fatal error saying that `AppState.removeEventListener` is `undefined`. Create a component that uses `AppState`, e.g. ```jsx import React, { Component } from 'react'; import { AppState } from 'react-native'; class TestComponent extends Component { componentDidMount() { AppState.addEventListener('change', this.stateChangeListener); } componentWillUnmount() { AppState.removeEventListener('change', this.stateChangeListener); } } ``` It should pass test using Jest (snapshots) It's the continuation of #11199. This PR finish the mock for the native module `AppState`. [ GENERAL ] [ BUGFIX ] [AppState] Add missing mock for Jest for `removeEventListener` method. Closes #17908 Differential Revision: D7083144 Pulled By: shergin fbshipit-source-id: eafa07f064f971c3d657f2ffc9c00766c0925bac
Configuration menu - View commit details
-
Copy full SHA for 59c7b2c - Browse repository at this point
Copy the full SHA 59c7b2cView commit details -
Fix: Added scroll Bounds check in scrollToOffset method in RCTScrollV…
…iew on iOS Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> The scrollToOffset method of RCTScrollView for iOS does not include bound check for the scroll offset provided to the method. This can cause the whole view to scroll out of screen if the offset provided is greater than the bounds of the View. The same does not happen on Android, where the scroll halts once the last item of the scrollView is in the viewport. I have added bounds check so the offset resets to the MaxOffset which makes sure the view does not scroll out of the viewport. The issue can be observed in the following snack: https://snack.expo.io/H1363Uo8f ![ezgif com-optimize 1](https://user-images.githubusercontent.com/16662518/36068270-2437ae88-0ef7-11e8-96dd-819b4ae0fd67.gif) To test my changes I ran the code provided in the snack above with the react-native dependency pointing to my branch. As can be see in the video attached below, the scroll halts once it hits the end of the ScrollView even if the scroll offset provided is higher than the bounds of the ScrollView. It also does not scroll up for negative scroll offset. ![ezgif com-optimize](https://user-images.githubusercontent.com/16662518/36068130-9ae4f918-0ef3-11e8-8728-af7b2888bdb8.gif) [IOS] [BUGFIX] [ScrollView] - Added bounds check to prevent ScrollView from scrolling to an offset which is out of bounds of the ScrollView for iOS. Closes #17927 Differential Revision: D7014466 Pulled By: shergin fbshipit-source-id: a817738d08e1057a4c70f43373132f88fa1461c4
Configuration menu - View commit details
-
Copy full SHA for 16c9e5b - Browse repository at this point
Copy the full SHA 16c9e5bView commit details -
RN: Use
$ReadOnly
in CoreEventTypesReviewed By: sahrens Differential Revision: D7082715 fbshipit-source-id: d2f7e280d02bbd8e7dcba2d38b719fa4f82ecb8b
Configuration menu - View commit details
-
Copy full SHA for a817c64 - Browse repository at this point
Copy the full SHA a817c64View commit details -
Reviewed By: sahrens Differential Revision: D7082716 fbshipit-source-id: 13e1730b0b2380ae6be63e2b36bb40b9a44a99f4
Configuration menu - View commit details
-
Copy full SHA for 80c1839 - Browse repository at this point
Copy the full SHA 80c1839View commit details -
Allow passing custom configs through the CLI ("js1 run")
Reviewed By: jeanlauliac Differential Revision: D7081913 fbshipit-source-id: f5952599c840f2c65213bd2928b21f0c1d84f510
Configuration menu - View commit details
-
Copy full SHA for dabe8e0 - Browse repository at this point
Copy the full SHA dabe8e0View commit details -
Implement cloning for all ReactShadowNodes
Reviewed By: achen1 Differential Revision: D7063509 fbshipit-source-id: 90df8a3d2e6f2a4efa13f5eb0337b191b690bf8f
Configuration menu - View commit details
-
Copy full SHA for 62efff8 - Browse repository at this point
Copy the full SHA 62efff8View commit details -
Reviewed By: davidaurelio Differential Revision: D7085296 fbshipit-source-id: 76032af022d37a28976b33176f9a573e39861a39
Configuration menu - View commit details
-
Copy full SHA for bd30336 - Browse repository at this point
Copy the full SHA bd30336View commit details -
Change React Native application layout check
Reviewed By: shergin Differential Revision: D7076910 fbshipit-source-id: dc6df2dee886bbdf139d6e50192d621efad6d57e
Configuration menu - View commit details
-
Copy full SHA for 3eee96a - Browse repository at this point
Copy the full SHA 3eee96aView commit details -
Mark ObjC methods that are called from React Native as dynamic.
Reviewed By: mmmulani Differential Revision: D7087100 fbshipit-source-id: 18e5726e5b48e7b71fcaab19f6fe73be0cad6233
Configuration menu - View commit details
-
Copy full SHA for ebbd437 - Browse repository at this point
Copy the full SHA ebbd437View commit details -
Add testOnly_pressed to TouchableHighlight
Reviewed By: yungsters Differential Revision: D7043098 fbshipit-source-id: 1df06df6820d81b37dc9a167a7931ed20df44f0f
Configuration menu - View commit details
-
Copy full SHA for 3756d41 - Browse repository at this point
Copy the full SHA 3756d41View commit details
Commits on Feb 27, 2018
-
Explicitly handle null props in bindings
Reviewed By: fkgozali, mdvacca Differential Revision: D7080813 fbshipit-source-id: 7c9706df719a39e11a3d99c2de38af992b62dabf
Configuration menu - View commit details
-
Copy full SHA for 84ad5d3 - Browse repository at this point
Copy the full SHA 84ad5d3View commit details -
Reviewed By: fkgozali Differential Revision: D7092777 fbshipit-source-id: 619a78911f2857f1183597143aec86957f277f9e
Configuration menu - View commit details
-
Copy full SHA for 07334cb - Browse repository at this point
Copy the full SHA 07334cbView commit details -
Catch exception and report it when making a network request with inva…
…lid URL on Android Summary: Currently if you invoke `fetch()` with an invalid URL ("aaa" for example) you cannot catch the error in javascript since it's not reported. Instead the entire app crashes. Fixes #7436 and #18087 Hopefully. <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> Fix using fetch on Android with user generated input. Added relevant unit test `./scripts/run-android-local-unit-tests.sh` all pass [ANDROID] [BUGFIX] [fetch] - Allow "unexpected url" exception to be caught on Android when using fetch <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes #18103 Differential Revision: D7097110 Pulled By: hramos fbshipit-source-id: 69144e8a0f7404d9bcc7c71a94650de36a48c84a
Configuration menu - View commit details
-
Copy full SHA for da84eba - Browse repository at this point
Copy the full SHA da84ebaView commit details -
iOS: adjusted JSI binding for C++ FabricUIManager
Reviewed By: sebmarkbage, shergin Differential Revision: D7078631 fbshipit-source-id: 6df21e52d3941372a9845fdcf2aed777de7cb359
Configuration menu - View commit details
-
Copy full SHA for 52acbbd - Browse repository at this point
Copy the full SHA 52acbbdView commit details -
iOS - expose C++ FabricUIManager to the bridge via a wrapper class
Reviewed By: shergin Differential Revision: D7093253 fbshipit-source-id: 7317144ad2cb5b8903227c779798e1576f8de2c2
Configuration menu - View commit details
-
Copy full SHA for 28c694f - Browse repository at this point
Copy the full SHA 28c694fView commit details -
npmignore: ignore tests and fixtures
Summary: This try to address #17672 and facebook/metro#139. We should probably not include these folders in the released version of React Native, as they are used only for testing—am I incorrect? cc MoOx, t4deu. I ran: ``` npm pack tar -t -f react-native-1000.0.0.tgz | less ``` Then verified that `__fixture__` was not part of the package. #17672 [GENERAL] [BUGFIX] [.npmignore] - Do not publish test-specific files Closes #18019 Differential Revision: D7098211 Pulled By: jeanlauliac fbshipit-source-id: 0748ad8c064450bd2a9f4d6f49675a7f74fb300f
Configuration menu - View commit details
-
Copy full SHA for a759a44 - Browse repository at this point
Copy the full SHA a759a44View commit details -
Fix crashes onKeyPress Android
Summary: There appear to be two different types of crashes related to the recent addition of `onKeyPress` on Android introduce in `0.53`. This PR addresses the cause of both of them. Firstly, it seems possible to get an `indexOutOfBoundsException` with some 3rd-party keyboards as observed in #17974 & #17922. I have simplified the backspace determining logic slightly, and also put in an explicit check for zero case so it is not possible to get an indexOutOfBoundsException & it should make sense in the context of the onKeyPress logic. Secondly, it appears that `EditText#onCreateInputConnection` can return null. In this case, if we set `null` to be the target of our subclass of `ReactEditTextInputConnectionWrapper`, we will see the crashes as seen [here](#17974 (comment)), whereby any of methods executed in the `InputConnection` interface can result in a crash. It's hard to reason about the state when `null` is returned from `onCreateInputConnection`, however I would might reason that any soft keyboard input cannot update the `EditText` with a `null` `input connection`, as there is no way of interfacing with the `EditText`. I'm am not sure, if there is a later point where we might return/set this input connection at a later point? As without the `InputConnection` onKeyPress will not work. But for now, this will fix this crash at least. I have not managed to reproduce these crashes myself yet, but users have confirmed that the `indexOutOfBounds` exception is fixed with the 'zero' case and has been confirmed on the respective issues #17974 (comment). For the `null` inputConnection target case, I have verified that explicitly setting the target as null in the constructor of `onCreateInputConnection` results in the same stack trace as the one linked. Here is also a [reference](https://github.com/stripe/stripe-android/pull/392/files#diff-6cc1685c98457d07fd4e2dd83f54d5bb) to the same issue closed with the same fix for another project on github. It is also important to verify that the behavior of `onKeyPress` still functions the same after this change, which can be verified by running the RNTesterProject and the `KeyboardEvents` section in `InputText`. The cases to check that I think are important to check are: - Cursor at beginning of input & backspace - Return key & return key at beginning of input - Select text then press delete - Selection then press a key - Space key - Different keyboard types This should not be a breaking change. [ANDROID] [BUGFIX] [TextInput] - Fixes crashes with TextInput introduced in 0.53. Closes #18114 Differential Revision: D7099570 Pulled By: hramos fbshipit-source-id: 75b2dc468c1ed398a33eb00487c6aa14ae04e5c2
Configuration menu - View commit details
-
Copy full SHA for b60a727 - Browse repository at this point
Copy the full SHA b60a727View commit details -
Summary: Closes #18111 Differential Revision: D7099636 Pulled By: hramos fbshipit-source-id: fc95ba83c34e0061c13fb831ea3496d7e8f3793a
Configuration menu - View commit details
-
Copy full SHA for c87d03a - Browse repository at this point
Copy the full SHA c87d03aView commit details -
Support Input Accessory View (iOS Only) [1/N]
Reviewed By: mmmulani Differential Revision: D6886573 fbshipit-source-id: 71e1f812b1cc1698e4380211a6cedd59011b5495
Configuration menu - View commit details
-
Copy full SHA for 38197c8 - Browse repository at this point
Copy the full SHA 38197c8View commit details -
Timeout Android instrumentation steps
Summary: Sporadically, the instrumentation tests step will timeout while waiting for the apk to install on the emulator. By adding a 5 minute timeout, the command will be retried in these cases, where hopefully the install will go through. Test Plan Tested on Circle. Closes #18127 Differential Revision: D7101890 Pulled By: hramos fbshipit-source-id: 4dcc77153d794e9747df58ea40c011bc316b6c83
Configuration menu - View commit details
-
Copy full SHA for 1346bf8 - Browse repository at this point
Copy the full SHA 1346bf8View commit details -
onPress animation with magnification
Summary: Related to: #15454 Motivation: Improve tvOS feeling for TouchableHighlight ![changewithaniamtion](https://user-images.githubusercontent.com/7658664/29193477-b99b4a10-7e25-11e7-8b31-e0e4ca9d7720.gif) - When you select the button he is focus and the underlay is show - When you press the button, there is an animation, but after the animation, the focus is on the button and the underlay is show Play with tvParallaxProperties on tvOS, test with and without patch just to see the actual behaviour ``` <TouchableHighlight tvParallaxProperties={{ enabled: true, shiftDistanceX: 0, shiftDistanceY: 0, tiltAngle: 0, magnification: 1.1, pressMagnification: 1.0, pressDuration: 0.3, }} underlayColor="black" onShowUnderlay={() => (console.log("onShowUnderlay")} onHideUnderlay={() => (console.log("onHideUnderlay")} onPress={() => (console.log("onPress")} > <Image style={styles.image} source={ uri: 'https://www.facebook.com/images/fb_icon_325x325.png' } /> </TouchableHighlight> ``` Closes #15455 Differential Revision: D6887437 Pulled By: hramos fbshipit-source-id: e18b695068bc99643ba4006fb3f39215b38a74c1
Configuration menu - View commit details
-
Copy full SHA for 6c353fd - Browse repository at this point
Copy the full SHA 6c353fdView commit details -
Add possibility to add custom plugin prefix
Summary: The problem with a fixed prefix is that babel 7 uses a scoped packages and every (standard) plugin is now part of that scope so the prefix is no longer `babel-plugin-` but instead `babel/plugin-`. There are more changes. This one will at least fix most of them. Reviewed By: davidaurelio Differential Revision: D7085102 fbshipit-source-id: b927998c611b71b3265e1cb3f6df537b14f9cb25
Configuration menu - View commit details
-
Copy full SHA for 2dc559d - Browse repository at this point
Copy the full SHA 2dc559dView commit details -
Xcode 9 supports running multiple simulators
Summary: Since Xcode 9 you can run multiple simultaneously. And since I believe React Native advocates using the latest version of Xcode, we can safely remove this constraint. Updated the unit tests. Furthermore it can be found in the [Xcode release notes](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/WhatsNewXcode/xcode_9/xcode_9.html#//apple_ref/doc/uid/TP40004626-CH8-SW12) that multiple simulators are now supported. This can be tested with the CLI by running `react-native run-ios` twice, but with a different `--simulator` flag, e.g.; react-native run-ios --simulator "iPhone SE" react-native run-ios --simulator "iPhone X" [IOS] [ENHANCEMENT] [local-cli/runIOS/findMatchingSimulator.js] - Allow running multiple simulators Closes #17284 Differential Revision: D7102790 Pulled By: hramos fbshipit-source-id: 750e7039201e28a1feda2bec1e78144fd9deff98
Configuration menu - View commit details
-
Copy full SHA for 2ad3407 - Browse repository at this point
Copy the full SHA 2ad3407View commit details -
Fix #8615: NetInfo.isConnected for iOS
Summary: This is fixing #8615. The problem was that, on initialization, the `_connectionType` variable was still set to its default value of `RCTConnectionTypeUnknown`. The exposed API method did nothing to determine this unless a subscription had be established and then the method would simply return the last reported value. Instead, the exposed oneshot API call now actually checks the connection status through the same methods as the subscription and updates RCTNetInfo’s values before returning. In order to avoid reporting events without a subscription, a flag is set and unset on calls to start/stopObserving. - start app - observe the (in)correct reporting of the manual status - change network status to offline - press refresh - observe the manual fetch - start subscription - change network status to online - press refresh to show that the manual refresh works (only now working for current RN version) - change network status to offline - stop subscription - change network status to online - press refresh to show manual refresh does(n't) work without subscription - start subscription to show it updates to current Current Behavior: https://drive.google.com/file/d/1Ods6HORgp_vfm1mQVjGwhtH1D7issxjo/view?usp=sharing Fixed Behavior: https://drive.google.com/file/d/11H1UOF33LeMGvXEOoapU62ARDSb7qoYv/view?usp=sharing [IOS] [BUGFIX] [Libraries\Network\RCTNetInfo.m] - Fixed #8615, `iOS: NetInfo.isConnected returns always false`, by decoupling the fetch from the status of the subscription. Closes #17397 Differential Revision: D7102771 Pulled By: hramos fbshipit-source-id: ea11eb0b1a7ca641fc43da2fe172cf7b2597de4a
Configuration menu - View commit details
-
Copy full SHA for dbafc29 - Browse repository at this point
Copy the full SHA dbafc29View commit details -
Implement letterSpacing on Android >= 5.0
Summary: `letterSpacing` is completely missing from RN Android at the moment. I've reviewed the `letterSpacing` implementations in #13199, #13877 and #16801 (that all seem to have stalled) and managed to put together an improved one based on #13199, updated to merge cleanly post 6114f86, that resolves the [issues](#13199 (comment)) I've identified with that code. I believe this is the closest PR yet to a correct implementation of this feature, with a few caveats: - As with the other PRs, this only works on Android >= 5.0 (silently falling back to no letter spacing on older versions). Is this acceptable for a RN feature, in general? Would a dev mode warning be desirable? - The other PRs seem to have explored the space of potential solutions to the layout issue ([Android renders space _around_ glyphs](https://issuetracker.google.com/issues/37079859), iOS to the _right_ of each one) and come up empty, so I've opted to merely document the difference. - I have neither updated nor tested the "Flat" UI implementation - everything compiles but I've taken [this comment](#12770 (comment)) to mean there's no point in trying to wade through it on my own right now; I'm happy to tackle it if given some pointers. - The implementation in `ReactEditText` is only there to handle the placeholder text, as `ReactBaseTextShadowNode` already affects the input control's contents correctly. - I'm not sure whether `<TextInput>` is meant to respect `allowFontScaling`; I've taken my cue here from `ReactTextInputManager.setFontSize()`, and used the same units (SP) to interpret the value in `ReactEditText.setLetterSpacingPt()`. - I'm not sure whether `<TextInput>` is even meant to support `letterSpacing` - it doesn't actually work on iOS. I'm not going to be able to handle the Objective-C side of this, not as part of this PR at least. - I have not added unit tests to `ReactTextTest` - is this desirable? I see that some other props such as `lineHeight` aren't covered there (unless I'm not looking in the right place). - Overall, I'm new to this codebase, so it's likely I've missed something not mentioned here. Note comment re: unit tests above; RNTester screenshots follow. | iOS (existing functionality, amended test) | Android (new functionality & test) | | - | - | | <img src=https://user-images.githubusercontent.com/2246565/34458459-c8d59498-edcb-11e7-8c8f-e7426f723886.png width=300> | <img src=https://user-images.githubusercontent.com/2246565/34458473-2a1ca368-edcc-11e7-9ce6-30c6d3a48660.png width=300> | | iOS _(not implemented, test not in this branch)_ | Android (new functionality & test) | | - | - | | <img src=https://user-images.githubusercontent.com/2246565/34458481-6c60a36e-edcc-11e7-9af5-9734dd722ced.png width=300> | <img src=https://user-images.githubusercontent.com/2246565/34458486-8b3cdcf8-edcc-11e7-974b-25c6085fa674.png width=300> | | iOS _(not implemented, test not in this branch)_ | Android (new functionality & test) | | - | - | | <img src=https://user-images.githubusercontent.com/2246565/34458492-d69a77be-edcc-11e7-896f-21212621dbee.png width=300> | <img src=https://user-images.githubusercontent.com/2246565/34458490-b3a1139e-edcc-11e7-88c8-79d4430d1514.png width=300> | facebook/react-native-website#105 - this docs PR is edited slightly from what's in `TextStylePropTypes` here; happy to align either one to the other after a review. [ANDROID] [FEATURE] [Text] - Implemented letterSpacing Closes #17398 Reviewed By: mdvacca Differential Revision: D6837718 Pulled By: hramos fbshipit-source-id: 5c9d49e9cf4af6457b636416ce5fe15315aab72c
Configuration menu - View commit details
-
Copy full SHA for 5898817 - Browse repository at this point
Copy the full SHA 5898817View commit details
Commits on Feb 28, 2018
-
Increase n days before issue considered stale
Summary: This repository has Probot's [Stale workflow](https://github.com/probot/stale) enabled. It is configured via the `.github/stale.yml` file. In this PR, we increase number of days before an issue becomes stale to ~six months, and increase days until the same issue is closed after inactivity to ~2 months. It also limits the stale bot to issues only. Closes #18108 Differential Revision: D7105801 Pulled By: hramos fbshipit-source-id: 23efd41f88c03cb6c0be3820a3b3ac67b3e4a6fe
Configuration menu - View commit details
-
Copy full SHA for 247f32f - Browse repository at this point
Copy the full SHA 247f32fView commit details -
Add option to hide context menu for TextInput #17335
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> There is currently no way to disable to context menu that automatically appears over a TextInput. This is especially troublesome if you would like to disable the user from pasting text into certain fields. This PR adds a `contextMenuHidden` property to TextInput that will hide it. I'm not sure if testing is necessary here. I would be happy to investigate further on how this would be tested, if deemed necessary! facebook/react-native-website#95 <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> [FEATURE][TextInput] - Added `contextMenuHidden` property Closes #18125 Differential Revision: D7101888 Pulled By: hramos fbshipit-source-id: fe36603a3fbdcefbd644251a7ea894ac7e23e5b8
Configuration menu - View commit details
-
Copy full SHA for 2dd2529 - Browse repository at this point
Copy the full SHA 2dd2529View commit details -
Fixed TVOS test failure caused by input accessory view change
Reviewed By: mmmulani Differential Revision: D7103353 fbshipit-source-id: 7a1575eff0296017521fc8ca6fe384301849a73e
Configuration menu - View commit details
-
Copy full SHA for 6d9fe45 - Browse repository at this point
Copy the full SHA 6d9fe45View commit details -
Added InputAccessoryView demo to RNTester [2/N]
Summary: This is an example showing how to use an InputAccessoryView to build an iMessage-like sticky text input https://youtu.be/89PGsSqtmQU Reviewed By: sahrens Differential Revision: D7048456 fbshipit-source-id: 90314a85f3662c2b21aababe2dd46ea5e406604a
Configuration menu - View commit details
-
Copy full SHA for 84ef7bc - Browse repository at this point
Copy the full SHA 84ef7bcView commit details -
Refactor cloneWithNewChildren method
Reviewed By: achen1 Differential Revision: D7064266 fbshipit-source-id: 71ef5651893359a257c39a5943812853f8d0dbcd
Configuration menu - View commit details
-
Copy full SHA for ddcd609 - Browse repository at this point
Copy the full SHA ddcd609View commit details -
Add header_namespace to handle cross-platform uses
Differential Revision: D7101683 fbshipit-source-id: 2a95cd1447d4cc5d796556e3281d08136cd130ff
Configuration menu - View commit details
-
Copy full SHA for 35583e5 - Browse repository at this point
Copy the full SHA 35583e5View commit details -
Use complete type with unique_ptr
Reviewed By: fromcelticpark Differential Revision: D7114324 fbshipit-source-id: c9305c478ebe31ea35b590b861919fd42f56662d
Configuration menu - View commit details
-
Copy full SHA for 0d03fdd - Browse repository at this point
Copy the full SHA 0d03fddView commit details -
Use #include instead of #import
Reviewed By: compnerd Differential Revision: D7114385 fbshipit-source-id: a443770910714aab1af3f3ac5e932f6aaf1afe99
Configuration menu - View commit details
-
Copy full SHA for 0bc80e9 - Browse repository at this point
Copy the full SHA 0bc80e9View commit details
Commits on Mar 1, 2018
-
Summary: Reduce the amount of text people have to read through when opening a new issue. Closes #18140 Differential Revision: D7117467 Pulled By: hramos fbshipit-source-id: 4e976adc44a283ab6d5729e5dd2eaa095871c009
Configuration menu - View commit details
-
Copy full SHA for dd187a2 - Browse repository at this point
Copy the full SHA dd187a2View commit details -
Do not mention people, suggest labels
Summary: GitHub notifications have been made noisier with these automatic mentions. We can rely on the automatic reviewer tags instead. Also: suggest labels that may be used, based on release notes (the danger bot cannot add labels itself). Closes #18138 Differential Revision: D7114654 Pulled By: hramos fbshipit-source-id: 0d85879f937921543935d090c792ea09f53cb84a
Configuration menu - View commit details
-
Copy full SHA for 4c82ce4 - Browse repository at this point
Copy the full SHA 4c82ce4View commit details -
React sync for revisions a634e53...ab4280b
Reviewed By: bvaughn Differential Revision: D7077686 fbshipit-source-id: de39027bef1f9d48802202555a5c765999d7bfe7
Configuration menu - View commit details
-
Copy full SHA for 1605786 - Browse repository at this point
Copy the full SHA 1605786View commit details -
workaround android-only js module resolution issue
Summary: for some reason metro was not able to find js module with just .android.js variant. To workaround some build issue, added an empty .ios.js variant Reviewed By: mdvacca Differential Revision: D7115360 fbshipit-source-id: 40b95cf2efc4d3d599f39b88813469b6d78e7b48
Configuration menu - View commit details
-
Copy full SHA for c20e0f9 - Browse repository at this point
Copy the full SHA c20e0f9View commit details -
iOS: pass fabric flag down to RCTRootView/RCTSurface for proper unmou…
…nting Reviewed By: shergin Differential Revision: D7119220 fbshipit-source-id: 7a822036e29e0d92f53a164acba2ab75e883b5c4
Configuration menu - View commit details
-
Copy full SHA for 006b77f - Browse repository at this point
Copy the full SHA 006b77fView commit details -
Make two separate yoga targets for QE
Reviewed By: emilsjolander Differential Revision: D7059278 fbshipit-source-id: dd11b018edc8ea930d5eba09c6c01e349bb8b63c
Configuration menu - View commit details
-
Copy full SHA for af9d647 - Browse repository at this point
Copy the full SHA af9d647View commit details -
Reviewed By: emilsjolander Differential Revision: D6969537 fbshipit-source-id: bdc09eaf703e0d313ca65c25a4fb44c99203d9bf
Configuration menu - View commit details
-
Copy full SHA for d174ab8 - Browse repository at this point
Copy the full SHA d174ab8View commit details -
Remove optional parameter from server and enforce empty list everywhere
Reviewed By: jeanlauliac Differential Revision: D6999448 fbshipit-source-id: 39a6b9333e3c3ec05bae5423fcc84ad17e1fdc06
Configuration menu - View commit details
-
Copy full SHA for 8a7f68e - Browse repository at this point
Copy the full SHA 8a7f68eView commit details -
Check PATENTS does not creep into files
Summary: Some files have crept into the repo with the old license header. These are usually from PRs that were opened prior to the re-licensing of the project. Let the script run, prior to fixing the errant files. The script outputs the following: ``` PATENTS crept into some new files? --- /dev/fd/63 2018-03-01 01:42:48.250153746 +0000 +++ /dev/fd/62 2018-03-01 01:42:48.250153746 +0000 @@ -1 +1,9 @@ +Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.h +Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.m +ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.java +ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLetterSpacingSpan.java +ReactCommon/yoga/yoga/YGLayout.cpp +ReactCommon/yoga/yoga/YGLayout.h +ReactCommon/yoga/yoga/YGStyle.cpp +ReactCommon/yoga/yoga/YGStyle.h scripts/circleci/check_license.sh Exited with code 1 ``` Fix the headers in these files and run the script again. No output, exit code 0. Closes #18143 Reviewed By: sophiebits Differential Revision: D7119356 Pulled By: hramos fbshipit-source-id: d238e4d4a3ae320a2c8e625c2fa29690057a4814
Configuration menu - View commit details
-
Copy full SHA for b181b77 - Browse repository at this point
Copy the full SHA b181b77View commit details -
Create UIManager interface and extract common classes in uimanager/co…
…mmon Reviewed By: achen1 Differential Revision: D7102674 fbshipit-source-id: e14b6782ad102ec1c3d37988df4bbd4190511f09
Configuration menu - View commit details
-
Copy full SHA for 6b45fb2 - Browse repository at this point
Copy the full SHA 6b45fb2View commit details -
Adding configuration of Fabric inside ReactRootView.
Reviewed By: achen1 Differential Revision: D7102701 fbshipit-source-id: f655327372c42ad86042011a3af3ee693d14014a
Configuration menu - View commit details
-
Copy full SHA for b5b0ee8 - Browse repository at this point
Copy the full SHA b5b0ee8View commit details -
Adding simple View rendering support using FabricUIManager.
Reviewed By: achen1 Differential Revision: D7102725 fbshipit-source-id: d2878d036843ba01201c4df617680269b5f59039
Configuration menu - View commit details
-
Copy full SHA for c0c388c - Browse repository at this point
Copy the full SHA c0c388cView commit details -
Fix unmount of ReactRootView for Fabric surfaces
Reviewed By: fkgozali Differential Revision: D7114865 fbshipit-source-id: f0a1c47c983e610fe0dba3051ed8aa350ac052cc
Configuration menu - View commit details
-
Copy full SHA for 9b3861c - Browse repository at this point
Copy the full SHA 9b3861cView commit details -
Log java error messages from FabricUIManagerModule
Reviewed By: mdvacca Differential Revision: D7126177 fbshipit-source-id: bafa6e2b3dabf39d2ca0d9a8830b877fc5ae97ec
Configuration menu - View commit details
-
Copy full SHA for 3f85dc5 - Browse repository at this point
Copy the full SHA 3f85dc5View commit details
Commits on Mar 2, 2018
-
Add extra information to error message reported when a ReactRawText i…
…s included as a child of a non Text component Reviewed By: achen1 Differential Revision: D7120188 fbshipit-source-id: 553a26d04a62dceb86d791bcdcb3a5e16a12f64b
Configuration menu - View commit details
-
Copy full SHA for 22990c3 - Browse repository at this point
Copy the full SHA 22990c3View commit details -
Added an Assertion that addRoot is called before completeRoot
Reviewed By: mdvacca Differential Revision: D7127321 fbshipit-source-id: a8215fda0d854471bed9aa5476141dfffc4dc11c
Configuration menu - View commit details
-
Copy full SHA for 6404529 - Browse repository at this point
Copy the full SHA 6404529View commit details -
Reviewed By: mdvacca Differential Revision: D7128443 fbshipit-source-id: 4eedea4df2b636eb9589cbe5e84c5c6a8aa33539
Configuration menu - View commit details
-
Copy full SHA for 78b3065 - Browse repository at this point
Copy the full SHA 78b3065View commit details -
Avoid var specific hoisting rules
Reviewed By: sahrens Differential Revision: D7116184 fbshipit-source-id: 4fd1654028e52f5aafad348546b889f1737c7399
Configuration menu - View commit details
-
Copy full SHA for 7216079 - Browse repository at this point
Copy the full SHA 7216079View commit details -
Make the chrome debugger handle dynamic delta ids
Differential Revision: D7112419 fbshipit-source-id: 1d80c0c13144dd19bbcd5535383befc6567cacf7
Configuration menu - View commit details
-
Copy full SHA for 7be3d1c - Browse repository at this point
Copy the full SHA 7be3d1cView commit details -
Expose React Native version as a symbol rather than macro
Summary: Add RCTGetReactNativeVersion() to expose version in native code. Right now, version is exposed internally to RN using a MACRO constant. This exposes a symbol (function) that can be called to retrieve the React Native version in iOS. Also exposed RCTVersion.h as a public header in the React project so it is available to developers. The motivation behind this is for https://github.com/wix/detox —we need to know what RN version the user has, if any, so we can properly handle support and abstract differences. Ran bump-oss-version.js to ensure the template is applied properly. Also compiled the project to make sure nothing is broken. [IOS] [ENHANCEMENT] [RCTVersion.h] - Expose version as a compile-time symbol for native queries <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes #18136 Differential Revision: D7141076 Pulled By: hramos fbshipit-source-id: 18a92b8c60d7b43fa0ed22597ea46a35cff73c56
Configuration menu - View commit details
-
Copy full SHA for 30469ed - Browse repository at this point
Copy the full SHA 30469edView commit details
Commits on Mar 3, 2018
-
Mark targets as explicitly Android
Reviewed By: mmmulani Differential Revision: D7141568 fbshipit-source-id: 6c8679790309e72ca220443ecf693087f82ece85
Configuration menu - View commit details
-
Copy full SHA for 5d3efa7 - Browse repository at this point
Copy the full SHA 5d3efa7View commit details -
Refactor FabricUIManagerModule -> FabricUIManager
Reviewed By: fkgozali Differential Revision: D7125829 fbshipit-source-id: 46f9722a20e0bbf7f99a0cc36067035b009d73d8
Configuration menu - View commit details
-
Copy full SHA for 0d148ad - Browse repository at this point
Copy the full SHA 0d148adView commit details -
Wrap global variables in extern C
Reviewed By: compnerd Differential Revision: D7144899 fbshipit-source-id: d40bda0e9225734398e35adc582b8932c0280b24
Configuration menu - View commit details
-
Copy full SHA for ffcd067 - Browse repository at this point
Copy the full SHA ffcd067View commit details -
iOS: Introduced RCTSurfaceHostingProxyRootView for migration to RCTSu…
…rfaceHostingView Summary: To help with migration from direct usages of RCTRootView to RCTSurfaceHostingView, RCTSurfaceHostingProxyRootView is added, which is simply a custom impl of RCTSurfaceHostingView, but will all RCTRootView APIs preserved. This makes it easy to do a drop-in replacement in native callsites: ``` // before: RCTRootView *rootView = [[RCTRootView alloc] init...]; // after: RCTRootView *rootView = (RCTRootView *)[[RCTSurfaceHostingProxyRootView alloc] init...]; ``` Reviewed By: shergin Differential Revision: D7141696 fbshipit-source-id: db8c447749eaa896efaa37774a9babef132128eb
Configuration menu - View commit details
-
Copy full SHA for 34b8876 - Browse repository at this point
Copy the full SHA 34b8876View commit details -
Truncate filter label if it's too long to fit
Differential Revision: D7144192 fbshipit-source-id: 4001930b194421682fa9bdc9b097434910f339b6
Configuration menu - View commit details
-
Copy full SHA for f734357 - Browse repository at this point
Copy the full SHA f734357View commit details -
Converting Libraries/Components to not use var
Reviewed By: sahrens Differential Revision: D7117137 fbshipit-source-id: a55a04928a0073a17e0709e851aa8b11678042ba
Configuration menu - View commit details
-
Copy full SHA for 3152e93 - Browse repository at this point
Copy the full SHA 3152e93View commit details -
Tightening type for flattenStyle
Reviewed By: yungsters Differential Revision: D7131703 fbshipit-source-id: d8e37fcd0c743057e04760b1e50f8d879bd2826a
Configuration menu - View commit details
-
Copy full SHA for 70a3ece - Browse repository at this point
Copy the full SHA 70a3eceView commit details
Commits on Mar 5, 2018
-
Summary: Although the test suites have a handful of failing tests, the jobs themselves do not fail. Let's get these tests back into the fold so that we may track our progress getting these back to a good state. cc dlowder-salesforce Run tests on Circle, and confirm everything is green: https://circleci.com/workflow-run/4dd1a84b-502d-4ad6-aa41-64c768392a6b If you go into the test iOS and test tvOS jobs, you will see that we are collecting test results at the top. These results show the failing individual tests. Closes #18171 Differential Revision: D7151558 Pulled By: hramos fbshipit-source-id: f105ec8bc97e80ed1b8358cde3f13a1ad3b271c2
Configuration menu - View commit details
-
Copy full SHA for 498cf7e - Browse repository at this point
Copy the full SHA 498cf7eView commit details -
Fix Viewpager on Android when using native navigation.
Summary: See the "broken" video attached to really understand the problem easily. On Android after navigating to any other screen using wix navigation library, the native viewpager would lose the settling page behaviour which is quite annoying for the users. This is caused by the onAttachedToWindow that resets mFirstLayout to true inside ViewPager. By request another layout pass, everything works as expected. Working video is the application with patched RN. [broken.mp4](https://github.com/facebook/react-native/files/1128028/broken.mp4.zip) [working.mp4](https://github.com/facebook/react-native/files/1128032/working.mp4.zip) Closes #14867 Differential Revision: D7154981 Pulled By: hramos fbshipit-source-id: 2b3570800a5320ed2c12c488748d9e1358936c84
Configuration menu - View commit details
-
Copy full SHA for a1295e1 - Browse repository at this point
Copy the full SHA a1295e1View commit details -
Move fb_xplat_cxx.bzl to xplat/build_defs
Reviewed By: mzlee, ttsugriy Differential Revision: D7152463 fbshipit-source-id: ad7ca85f225343a043e2f606c6b3bbf74f42bbcd
Configuration menu - View commit details
-
Copy full SHA for f389ad8 - Browse repository at this point
Copy the full SHA f389ad8View commit details -
Remove log in JSDevSupportModule
Reviewed By: fkgozali Differential Revision: D7138115 fbshipit-source-id: f9cdda250b60a305195e01a11d0907f658d0a9d1
Configuration menu - View commit details
-
Copy full SHA for 8769057 - Browse repository at this point
Copy the full SHA 8769057View commit details -
Revert "Better Android Gradle Plugin 3.x integration"
Summary: This reverts commit d16ff3b. Currently breaks with the gradle version used by RN, I think there has been some work to update that to a more recent one but for now I think we should just revert it. It errors with: ``` Could not find method registerGeneratedResFolders() for arguments [file collection] on object of type com.android.build.gradle.internal.api.ApplicationVariantImpl. ``` Tested that RN tester now builds when using the right react.gradle (#18188) [ ANDROID ] [ BUGFIX ] [ react.gradle ] - REVERT "Support Android Gradle Plugin 3.x and AAPT2" [ ANDROID ] [ FEATURE ] [ react.gradle ] - REVERT "Expose the bundling task and its outputs via ext properties" Closes #18189 Differential Revision: D7155176 Pulled By: hramos fbshipit-source-id: 87b7b80b39cd345eebac4631efe6697971a1dbdf
Configuration menu - View commit details
-
Copy full SHA for 3f8a04b - Browse repository at this point
Copy the full SHA 3f8a04bView commit details -
Use react.gradle from repo root instead of copy in RNTester
Summary: RNTester used a copy of the main react.gradle file instead of the real one. Recent changes to the real file caused builds to fail with older gradle versions but was not caught by CI because it wasn't using that file for RNTester. That copy of react.gradle is just a leftover from when projects included a copy instead of importing the one in RN directly. Note: CI WILL fail with this PR, if we have trouble landing this I can add the revert in this commit too but wanted to keep it as 2 separate commits. Tested that building RNTester actually fails now that it uses react.gradle with recent changes, then tested that is builds properly when reverting d16ff3b. [INTERNAL] [MINOR] [RNTester] - Use react.gradle from repo root instead of copy in RNTester Closes #18188 Differential Revision: D7155179 Pulled By: hramos fbshipit-source-id: 15b461a63b841bf807e7d11ba3ead005ca5e33b0
Configuration menu - View commit details
-
Copy full SHA for 9f239d7 - Browse repository at this point
Copy the full SHA 9f239d7View commit details -
Refactor BridgeListener into JSIModulesProvider
Reviewed By: achen1 Differential Revision: D7140944 fbshipit-source-id: 092ea8569af5b5f90e005d6dc2c1819c1c9cf58f
Configuration menu - View commit details
-
Copy full SHA for 4466b6f - Browse repository at this point
Copy the full SHA 4466b6fView commit details -
Update VirtualizedList to not throw with double constructor
Summary: constructor shouldn't have side effects. Reviewed By: sahrens Differential Revision: D7146018 fbshipit-source-id: 0ca311e48d6bad81988ed48605c8134068c482da
Configuration menu - View commit details
-
Copy full SHA for 19b9851 - Browse repository at this point
Copy the full SHA 19b9851View commit details -
Update node-notifier (has mem leak fix)
Summary: Noticed that we're on a version of node-notifier that has a leak mentioned [here](mikaelbr/node-notifier#183) and fixed in the newest version. Automated tests [INTERNAL] [BUGFIX] [package.json] - Update node-notifier dependency Closes #18033 Differential Revision: D7102637 Pulled By: hramos fbshipit-source-id: 850f3d826c1d880a6281d95e4d5af68e9af89927
Configuration menu - View commit details
-
Copy full SHA for 860fcd4 - Browse repository at this point
Copy the full SHA 860fcd4View commit details -
Remove callFunctionSync experimental APIs
Reviewed By: michalgr Differential Revision: D6124038 fbshipit-source-id: 219afe30783da92cf10f800dc35e64823b61cf4b
Configuration menu - View commit details
-
Copy full SHA for 19a4a7d - Browse repository at this point
Copy the full SHA 19a4a7dView commit details
Commits on Mar 6, 2018
-
Update opacity when
disabled
prop is changedSummary: fixes #17105 If you render ``` <TouchableOpacity disabled={true} style={{opacity: 0.5}} > ... </TouchableOpacity> ``` and then ``` <TouchableOpacity disabled={false} style={{opacity: 1}} > ... </TouchableOpacity> ``` The content of `TouchableOpacity` will still have opacity = 0.5 because real opacity is controlled by animated property which should be properly updated when `disabled` prop changes. <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> Usually when a button or other UI component is built with `TouchableOpacity` you may want to change it's opacity if state of component is changed (enabled/disabled). Opacity provided in props is overridden with internally-managed animated value. Add extra check when component is updated to trigger opacity animation upon change of `disabled` flag. You can use code from #17105. (If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/react-native-website, and link to your PR here.) [GENERAL][BUGFIX][TouchableOpacity] - trigger animation on `opacity` upon change in `disabled` prop. <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Closes #17106 Differential Revision: D7158549 Pulled By: hramos fbshipit-source-id: 209cc433b829b129810e8a884964c8853ca3fe8f
Configuration menu - View commit details
-
Copy full SHA for 9366ce4 - Browse repository at this point
Copy the full SHA 9366ce4View commit details -
iOS: branch out Fabric handling into a separate RCTSurface-compatible…
… class. Reviewed By: mmmulani Differential Revision: D7158824 fbshipit-source-id: 80eb61835181fa3f522b788e2861470cba88890a
Configuration menu - View commit details
-
Copy full SHA for b4ce427 - Browse repository at this point
Copy the full SHA b4ce427View commit details -
Remove polymorphic types from StyleSheetTypes
Summary: These types were polymorphic so that stricter types could be passed in for dimension or color. For example, color could be a union of allowed colors. However, since `rgb(0,0,0)` is a valid color, these would have to be allowed opaque types and every creator or caller of these colors would have to use a function. This would require a massive change to every RN product in the world for negligable gain because StyleSheet values are validated at dev at runtime and cause redboxes for invalid uses. Since we don't plan to adopt these widely, lets clean up the complexity of these types. Reviewed By: sahrens Differential Revision: D7158920 fbshipit-source-id: c58ae402c8248b0863c217c27153191a49c6b980
Configuration menu - View commit details
-
Copy full SHA for b98bf1e - Browse repository at this point
Copy the full SHA b98bf1eView commit details -
Using ReadOnly and Exact types for StyleSheet
Summary: There are a few more things that need to be tightened up but they cause *tons* of errors in FBSource and require more investigation before we can change them. Reviewed By: sahrens Differential Revision: D7160522 fbshipit-source-id: 17167efd80fd6c3bac5a055d2ab58b3b251c1b8b
Configuration menu - View commit details
-
Copy full SHA for b6c7e55 - Browse repository at this point
Copy the full SHA b6c7e55View commit details -
Fix lint in StyleSheet.compose
Reviewed By: TheSavior, yungsters Differential Revision: D7106910 fbshipit-source-id: e150c6622bb1af9830eef06757897d42002f5676
Configuration menu - View commit details
-
Copy full SHA for 52c7957 - Browse repository at this point
Copy the full SHA 52c7957View commit details -
Fix subtle bugs in cloning and FabricUIManager
Reviewed By: achen1 Differential Revision: D7164980 fbshipit-source-id: 86e9f3f11b67c8947b177aac23f99808083c3121
Configuration menu - View commit details
-
Copy full SHA for ac929ef - Browse repository at this point
Copy the full SHA ac929efView commit details -
Generalize JavaOnlyMap's getMap
Reviewed By: mdvacca Differential Revision: D7165678 fbshipit-source-id: 3dd88b24c89af369c9d5f3cc57c96f29c4f10d47
Configuration menu - View commit details
-
Copy full SHA for e839c91 - Browse repository at this point
Copy the full SHA e839c91View commit details -
Adding tests to cover regressions when upgrading to babel 7
Reviewed By: mjesun Differential Revision: D7123659 fbshipit-source-id: f344786dfe5e4c6c0d81992504ba93688edeb5db
Configuration menu - View commit details
-
Copy full SHA for 6eef7de - Browse repository at this point
Copy the full SHA 6eef7deView commit details -
Add support to FabricUIManger to handle Throwable
Reviewed By: achen1 Differential Revision: D7168684 fbshipit-source-id: c655730b5bf5e181974096c2b940f6457be8a40d
Configuration menu - View commit details
-
Copy full SHA for d2f0574 - Browse repository at this point
Copy the full SHA d2f0574View commit details -
Add support for Android TV devices
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> * To be on par with Apple TV support, this makes it possible to run React Native apps on Android TV devices (See also: https://react-native.canny.io/feature-requests/p/android-tv-support) * These changes also make it possible to navigate through the app using D-PAD buttons that are present on some mobile devices * Since these changes affect, among others, `ReactRootView.java` and `Touchable.js` code and are closely related to Apple TV implementation, it makes sense for them to be included in the core - React native apps can be launched on Android TV devices and properly render their content - Navigation is possible using left, right, top, bottom arrows from the remote (or D-PAD) - Touchable components can handle D-PAD center button press events and correctly fire their `onPress` handlers - Touchable components will receive `onPressIn` and `onPressOut` events and can react to focus/blur changes appropriately (just like on Apple TV) - `Platform` constants allow to check if the react-native app is running on TV (`Platform.isTV`) - `ScrollView`s behave correctly (same as native implementation) when switching to view outside bounds – that is, the container would scroll such that the newly focused element is fully visible - Native "clicking" sounds are played when moving between focusable elements - Play/Pause click event is send to `TVEventHandler` - Rewind and FastForward events are send to `TVEventHandler` - Back button behaves as a normal Android back button - Diagonal buttons work correctly on Android TV, e.g. if there is no button directly to the right from the focused one, but there is one to the right but a bit higher/lower it will grab focus - Dev menu can be accessed by long pressing fast forward button A demo showing RNTester app running on Android TV device (Amazon Fire TV Stick) can be found here: [![RNAndroidTVDemo](http://img.youtube.com/vi/EzIQErHhY20/0.jpg)](http://www.youtube.com/watch?v=EzIQErHhY20) - `TextInput` will not work on Android TV devices. There's an issue with native `ReactEditText` implementation that prevents it from receiving focus. This makes it impossible to navigate to `TextInput`. This will be fixed next, but will be included in a separate Pull Request - ~Overlay permissions cannot be granted on Android TV devices running Android version >= 6.0 This is because the overlay permission can only be granted by firing an Intent to open settings page (`ACTION_MANAGE_OVERLAY_PERMISSION`). Since this page does not exist on TV devices the permission cannot be requested. This will make the app crash when trying to open dev menu (⌘+M) or displaying a redbox error. Note: This does not affect devices running Android version < 6.0 (for example Amazon Fire TV Stick)~ This is now fixed by: #16596 * Launch the RNTester app on Android TV device. * Ensure it launches without a crash * Ensure basic navigation is possible * Ensure Touchable components can receive select events * Ensure the changes do not break current Android and iOS mobile devices functionality. * Ensure the changes do not break current Apple TV functionality. [RNAndroidTVDemo video](http://img.youtube.com/vi/EzIQErHhY20/0.jpg) * Added `ReactAndroidTVViewManager` that handles TV `KeyEvent`s and dispatches events to JS - This is the core that enables basic navigation functionality on Android TV devices * Following the above change we copy `TVEventHandler.ios.js` into `TVEventHandler.android.js` to enable JS to pick up those native navigation events and dispatch them further to subscribed views. (Note: We do not have a native `TVNavigationEventEmitter` implementation on Android, thus this file is slightly modified, e.g. it does pass `null` to `NativeEventEmitter` constructor) * Added `uiMode` to `AndroidInfoModule`. (**Note**: This required changing `extends BaseJavaModule` to `extends ReactContextBaseJavaModule` to be able to use `getSystemService` which requires `Context` instance! * Added `isTV` constants to both `Platform.ios.js` (keeping the deprecated `isTVOS` as well) and `Platform.android.js` * Changed condition check on `Touchable.js` to use the newly added `isTV` flag to properly handle TV navigation events on Android as well * Added `LEANBACK_LAUNCHER` to `RNTester` `intent-filter` so that it is possible to launch it on Android TV devices. * See also a PR to `react-native-website` repo with updated docs for Android TV: facebook/react-native-website#59 - [ ] Fix `TextInput` components handling by allowing them to be focused and making a proper navigation between them (and/or other components) possible. One thing to note here that the default behavior to immediately open software keyboard when focused on `TextInput` field will need to be adjusted on Android TV as well) - [x] Fix overlay permissions issue by changing the way redbox/dev menu are displayed (see: #16596) - [ ] Adjust placement of TV-related files (e.g. the `TVEventHandler.js` file is placed inside `AppleTV` directory which is not accurate, since it does handle Android TV events as well) Previous discussion: software-mansion-labs#1 <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAl ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> [ANDROID] [FEATURE] [TV] - Added support for Android TV devices Closes #16500 Differential Revision: D6536847 Pulled By: hramos fbshipit-source-id: 17bbb11e8583b97f195ced5fd9762f8902fb8a3d
Configuration menu - View commit details
-
Copy full SHA for b7bb2e5 - Browse repository at this point
Copy the full SHA b7bb2e5View commit details -
Add
RCTJavaScriptWillStartExecutingNotification
Summary: `RCTJavaScriptWillStartLoadingNotification` is being posted when starting the bridge, not when starting to execute JS code. Here, we add `RCTJavaScriptWillStartExecutingNotification`, and in post it before executing JS with `RCTCxxBridge`. Reviewed By: fromcelticpark Differential Revision: D7153659 fbshipit-source-id: 902075308d54a47bef43b6f57edf2e624f621ceb
Configuration menu - View commit details
-
Copy full SHA for 48c339d - Browse repository at this point
Copy the full SHA 48c339dView commit details -
iOS: RCTSurface needs to re-register its root view on bridge reload
Summary: When reloading JS during development, surface needs to make sure the root view gets re-registered before attempting to remount it. This fixes redbox on JS reload. Reviewed By: shergin Differential Revision: D7170416 fbshipit-source-id: c84b999d2cdc35cb9e26feef2a1e1a7ce35cfa70
Configuration menu - View commit details
-
Copy full SHA for 2e51fa5 - Browse repository at this point
Copy the full SHA 2e51fa5View commit details
Commits on Mar 7, 2018
-
Add Fabric test for text nodes
Reviewed By: mdvacca Differential Revision: D7165356 fbshipit-source-id: ab5b019943d0d6f759bdb16ca646e34a2ef79e23
Configuration menu - View commit details
-
Copy full SHA for e7b8341 - Browse repository at this point
Copy the full SHA e7b8341View commit details -
Clean up FabricUIManagerViewHierarchyTest
Reviewed By: mdvacca Differential Revision: D7165823 fbshipit-source-id: e6d2a83bf9e089c67d69de6581d177bdf0d2ec4e
Configuration menu - View commit details
-
Copy full SHA for 6fc4163 - Browse repository at this point
Copy the full SHA 6fc4163View commit details -
check for GET and Head in send request
Summary: React Native had an underlying problem connecting to Firestore (Google's latest database) from Android devices. You can follow the issue [here](firebase/firebase-js-sdk#283). The main problem was in NetworkingModule.java. Please refer to section 3 of 4.5.6 in whatwg.org's guideline https://xhr.spec.whatwg.org/#dom-xmlhttprequest-send In this [video](https://www.youtube.com/watch?v=tILagf46ys8), I am showing how the react native behaved before adding the new fix and how it worked after the new fix added. The new fix starts at 50 seconds. [ANDROID] [BUGFIX] [FIRESTORE][XMLHttpRequest][ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java] - Fixes the connection to Firestore by following whatwg.org's XMLHttpRequest send() method Closes #17940 Differential Revision: D7173468 Pulled By: hramos fbshipit-source-id: 354d36f03d611889073553b93a7c43c6d4363ff3
Configuration menu - View commit details
-
Copy full SHA for d52569c - Browse repository at this point
Copy the full SHA d52569cView commit details -
Allow Inspector to handle 2 renderers
Summary: To avoid crashing when there are 2 different renderers, let the Inspector be a bit lenient. Reviewed By: yungsters Differential Revision: D7175338 fbshipit-source-id: ee5f86252f090361e42b6e2a93ae56c4c83c8c53
Configuration menu - View commit details
-
Copy full SHA for d7b5b2e - Browse repository at this point
Copy the full SHA d7b5b2eView commit details -
Summary: Tightening these types. We can't type TextProp the same way yet because of something fishy in Flow: https://flow.org/try/#0KYDwDg9gTgLgBDAnmYcAqoYGUkBtUC8cA3gD4BQccAZhAHYwBiAhgLYCWuiAXHAM4wo7OgHMANJRr1s7AF7BedAK6sARsCgTSAXwDc5cqEiwEyVIwAiWRtJyJ8cImUm0GLDl14ChorXoNG0PBIKOiYdvgAClAQYI5wACQASsDMACYA8nRcADwJWAAWzCg5GCDYeMAAfFW6cAD09XAprBAAbqjJqZnZiHDMdGkIBagaMVBwIhDAfP0A7syIBgDG9AJwllgRChtWNgzb8cQu0u6cPHAA5LQQlxL+5Kt062UV9sAAasxQvK-b0bF4pttrogA Reviewed By: olegbl Differential Revision: D7165134 fbshipit-source-id: 2fd3de2af8bdc53231d59de71def1e6a7221aff7
Configuration menu - View commit details
-
Copy full SHA for c129457 - Browse repository at this point
Copy the full SHA c129457View commit details -
Reviewed By: yungsters Differential Revision: D7176472 fbshipit-source-id: 35f499bdac6c089d5f45884f6f11ea539c8b7085
Configuration menu - View commit details
-
Copy full SHA for 321ba06 - Browse repository at this point
Copy the full SHA 321ba06View commit details -
Merging tests for flattenStyle
Reviewed By: yungsters Differential Revision: D7176652 fbshipit-source-id: 25b6f2e4f8397ba6f07b2913775b91af90b45750
Configuration menu - View commit details
-
Copy full SHA for 135637c - Browse repository at this point
Copy the full SHA 135637cView commit details -
Remove Unused Exports from StyleSheetTypes
Summary: These types were barely used and unnecessary. Reviewed By: yungsters Differential Revision: D7177287 fbshipit-source-id: 63cb6d3aae4889a92b2c23f0df864b5657e6e1ee
Configuration menu - View commit details
-
Copy full SHA for b58e377 - Browse repository at this point
Copy the full SHA b58e377View commit details -
Fixing bugs in link and unlink
Summary: Android uses the name of the package, not the config, for the `isInstalled` check. Sending both parameters to `isInstalled` so we have a consistent API. <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> A bug was uncovered in the react-native link command where Android would not unlink because the wrong parameters were being sent to `isInstalled`. Successfully linked and unlinked `react-native-fs` on Windows and Mac. Jest tests pass. <!-- Help reviewers and the release process by writing your own release notes **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [-{Component}-] [ INTERNAL ] [ ENHANCEMENT ] [ {File} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| [CATEGORY] [TYPE] [LOCATION] - MESSAGE EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> [CLI][BUGFIX][local-cli/link/link.js] - Fix issue with `isInstalled` check for Android [CLI][BUGFIX][local-cli/link/unlink.js] - Fix issue with `isInstalled` check for Android [CLI][BUGFIX][local-cli/link/ios/common/unregisterNativeModule.js] - Fix references to unregister implementations. Closes #18207 Differential Revision: D7180885 Pulled By: hramos fbshipit-source-id: 5f479cd9d7b1ebd8626b461e9dc1f22988e2c61f
Configuration menu - View commit details
-
Copy full SHA for ec88489 - Browse repository at this point
Copy the full SHA ec88489View commit details -
iOS Surface: properly reset some internal states when JS reloads
Summary: There are a few important states that didn't reset correctly when reloading JS: * the RCTSurfaceStage was stuck at all bits enabled, hence no further stage change happened (even though the state "reset" to `RCTSurfaceStageBridgeDidLoad`) * the RCTSurfaceView didn't get recreated, because the _view ivar was never cleared * similarly, the _touchHandler ivar attached to the _view was never re-setup --> all touches after JS reload were dropped before this diff Reviewed By: mmmulani Differential Revision: D7178038 fbshipit-source-id: ba49bc205f8bf43842471b7ab748cef8549ea212
Configuration menu - View commit details
-
Copy full SHA for cade297 - Browse repository at this point
Copy the full SHA cade297View commit details -
Make StyleSheet.create type private
Summary: This type is being used in many places where a much simpler type is often better. In a real pinch this type can still be accessed as so: ``` function returnsStyleSheet( ): $Call<typeof StyleSheet.create, *> { return StyleSheet.create({ root: { background: 'white', } }) } returnsStyleSheet().foo // foo doesn't exist returnsStyleSheet().root // okay ``` Reviewed By: yungsters Differential Revision: D7178524 fbshipit-source-id: 3c0ed03486ca00f1e287261e402fd47807f1fc3d
Configuration menu - View commit details
-
Copy full SHA for ee26d9b - Browse repository at this point
Copy the full SHA ee26d9bView commit details -
Rename StyleProp to DangerouslyImpreciseStyleProp
Summary: We want to rename these types to be more clear what they are actually for. I did this with a find and replace: ``` import type {StyleProp} from 'StyleSheet'; ``` to ``` import type {DangerouslyImpreciseStyleProp} from 'StyleSheet'; ``` and `StyleProp` to `DangerouslyImpreciseStyleProp`. Reviewed By: yungsters Differential Revision: D7178609 fbshipit-source-id: 32952e0c3a8b6aceef306f1f3c18844feb18f1aa
Configuration menu - View commit details
-
Copy full SHA for 49ffc9f - Browse repository at this point
Copy the full SHA 49ffc9fView commit details -
StyleObj -> DangerouslyImpreciseStyleProp
Summary: Migrating everything to import from StyleSheet instead of StyleSheetTypes. Search and replaced ``` import type {StyleObj} from 'StyleSheetTypes'; ``` to ``` import type {DangerouslyImpreciseStyleProp} from 'StyleSheet'; ``` and then replacing `StyleObj` with `DangerouslyImpreciseStyleProp` and fixing up the remaining flow errors by hand. Reviewed By: yungsters Differential Revision: D7184077 fbshipit-source-id: b8dabb9d48038b5a997ab715687300bad57aa9d4
Configuration menu - View commit details
-
Copy full SHA for a3c07c9 - Browse repository at this point
Copy the full SHA a3c07c9View commit details -
Reviewed By: BYK Differential Revision: D7181876 fbshipit-source-id: a1b567303b8024b832bf43dd6be56ccebffaf39c
Configuration menu - View commit details
-
Copy full SHA for 3c23645 - Browse repository at this point
Copy the full SHA 3c23645View commit details
Commits on Mar 8, 2018
-
Move __StyleProp to StyleSheet
Reviewed By: yungsters Differential Revision: D7185815 fbshipit-source-id: 897ae37af3f03aa1408f020bcc7e61004d4dbc0d
Configuration menu - View commit details
-
Copy full SHA for cf89a2c - Browse repository at this point
Copy the full SHA cf89a2cView commit details -
Mark more ObjC methods called from RN as dynamic
Reviewed By: kostiakoval Differential Revision: D7174480 fbshipit-source-id: 38af8e6e94cb8cdf6aa551d9df1b3e16543387e5
Configuration menu - View commit details
-
Copy full SHA for 23e0f86 - Browse repository at this point
Copy the full SHA 23e0f86View commit details -
iOS: create C++ <-> ObjC++ connector for FabricUIManager to do UI ope…
…rations Reviewed By: shergin Differential Revision: D7162911 fbshipit-source-id: 3e303020dafdccc51f52c3359a7054dc8a787978
Configuration menu - View commit details
-
Copy full SHA for 7bf3b20 - Browse repository at this point
Copy the full SHA 7bf3b20View commit details -
Fix RefreshControl's dependency on AndroidSwipeRefreshLayout
Reviewed By: mdvacca Differential Revision: D7185836 fbshipit-source-id: 726e6e6792f1f3971c2f7de9bb83ff888815220d
Configuration menu - View commit details
-
Copy full SHA for a162dc8 - Browse repository at this point
Copy the full SHA a162dc8View commit details -
Initialize ReactChoreographer before creating the TimingModule
Reviewed By: mdvacca Differential Revision: D7185838 fbshipit-source-id: f775f5668ccff3b311c95a0bdd37a420ec64b7d4
Configuration menu - View commit details
-
Copy full SHA for 596bcb6 - Browse repository at this point
Copy the full SHA 596bcb6View commit details -
Don't assume the SourceCode native module exists
Reviewed By: yungsters Differential Revision: D7185837 fbshipit-source-id: e8efc22ac0af092dbc1fdf616b0b3f111390dd5d
Configuration menu - View commit details
-
Copy full SHA for 8cdc7d3 - Browse repository at this point
Copy the full SHA 8cdc7d3View commit details -
Add eslint-plugin-react-native Yarn package and enable no-inline-styl…
…es rule for Marketplace Reviewed By: TheSavior Differential Revision: D7158098 fbshipit-source-id: 52c92c5427d27278c8f82ffa5d61b7e9ebbf7824
Configuration menu - View commit details
-
Copy full SHA for 89757ed - Browse repository at this point
Copy the full SHA 89757edView commit details -
Convert constant with build flags to function
Reviewed By: ttsugriy Differential Revision: D7184372 fbshipit-source-id: c66f473ad15898532f24c6276898ab250e749744
Configuration menu - View commit details
-
Copy full SHA for 5f497ca - Browse repository at this point
Copy the full SHA 5f497caView commit details -
Remove usage of Internal StyleSheet type
Summary: This type shouldn't be necessary from outside code. All callsites were able to be fixed by using the other types like TextStyleProp Reviewed By: yungsters Differential Revision: D7187551 fbshipit-source-id: 34fb7fb5f5e72e6cfcb9748157cb5eb6ad3e1f46
Configuration menu - View commit details
-
Copy full SHA for d89517d - Browse repository at this point
Copy the full SHA d89517dView commit details -
Summary: This type was often used when (View|Text|Image)StyleProp should have been used instead. Since there were no valid usages of it in our codebase, we are not making it public anymore. Reviewed By: yungsters Differential Revision: D7188658 fbshipit-source-id: 7112cc4a7da7b007b5c758a0890d2e0b8fe1797a
Configuration menu - View commit details
-
Copy full SHA for 852084a - Browse repository at this point
Copy the full SHA 852084aView commit details -
Reviewed By: yungsters Differential Revision: D7188912 fbshipit-source-id: 3466c542dc0fb1832b4545b1a307183efcd72b1d
Configuration menu - View commit details
-
Copy full SHA for 5b32358 - Browse repository at this point
Copy the full SHA 5b32358View commit details -
Rename Style to DangerouslyImpreciseStyle
Reviewed By: yungsters Differential Revision: D7190268 fbshipit-source-id: d652a95be7550d65cfbfc59f41d7bda92915bacf
Configuration menu - View commit details
-
Copy full SHA for 4895c64 - Browse repository at this point
Copy the full SHA 4895c64View commit details -
Update additional license headers
Reviewed By: sophiebits Differential Revision: D7196607 fbshipit-source-id: 9e6452f583b2b5616f5bb38f26f2ae33c14bb820
Configuration menu - View commit details
-
Copy full SHA for f2ad77f - Browse repository at this point
Copy the full SHA f2ad77fView commit details -
Ignore yarn.lock and package-lock.json in oss
Summary: Attn janicduplessis Closes #18281 Differential Revision: D7200858 Pulled By: hramos fbshipit-source-id: 8566251255a12aba3a3f9d6af532c4f842a8c41e
Configuration menu - View commit details
-
Copy full SHA for ecd3d95 - Browse repository at this point
Copy the full SHA ecd3d95View commit details -
Reviewed By: olegbl Differential Revision: D7192405 fbshipit-source-id: 9d9bce8202a5e8f44d92ef6d0afbf8f55e9ea95a
Configuration menu - View commit details
-
Copy full SHA for 49396aa - Browse repository at this point
Copy the full SHA 49396aaView commit details -
propTypes are optional for native components
Summary: We plan to migrate native components like View, Text, and Image to be typed with Flow instead of propTypes so that we can better enforce our usages. This change makes it so that *if* propTypes are defined they must cover the native props. However, if they aren't specified, the validation doesn't occur. Eventually, the prop validation should occur via codegen that generates an interface the native component must implement from the flow types defined in JS. Reviewed By: yungsters Differential Revision: D7203649 fbshipit-source-id: a8095aa46807ce03272e2962289e8f5705b422b9
Configuration menu - View commit details
-
Copy full SHA for dbdf43b - Browse repository at this point
Copy the full SHA dbdf43bView commit details -
AccessibilityLabel is optional
Summary: We have a bunch of components internally that use accessibilityLabel in invalid ways. View was originally typed as any so invalid usages weren't caught. In order to fix these we have to move forward with getting back to flow having no errors. We are weakening these types to get there and we can tighten them again later. Reviewed By: yungsters Differential Revision: D7203260 fbshipit-source-id: 2282eba14899c620de5b4b1c1b2670b157f2fc9e
Configuration menu - View commit details
-
Copy full SHA for 214da52 - Browse repository at this point
Copy the full SHA 214da52View commit details
Commits on Mar 9, 2018
-
fabric/debug
module andDebugStringConvertible
classSummary: This is a very first diff in a series of undefined length implementing React Native Shadow Tree infra in C++. All Shadow Nodes, Props and etc. implements `DebugStringConvertible`. Authored by shergin Reviewed By: shergin Differential Revision: D7163868 fbshipit-source-id: 9c001aa5bd0723f709a07b1833f512c51e3bec11
Configuration menu - View commit details
-
Copy full SHA for 34f8e7f - Browse repository at this point
Copy the full SHA 34f8e7fView commit details -
fabric/core
module andSealable
classSummary: `Sealable` class represents something which can be *sealed* (imperatively marked as immutable). Authored by shergin Reviewed By: shergin Differential Revision: D7174883 fbshipit-source-id: 8b26ca5b1a5154953a099895778eab86228acc46
Configuration menu - View commit details
-
Copy full SHA for 3c86701 - Browse repository at this point
Copy the full SHA 3c86701View commit details -
Reviewed By: TheSavior Differential Revision: D7207468 fbshipit-source-id: 05ae6e003ae3e55bc2d3a905f41c28f7041dd7f0
Configuration menu - View commit details
-
Copy full SHA for 118521c - Browse repository at this point
Copy the full SHA 118521cView commit details -
RN: Delete Systrace for RelayClassic
Reviewed By: TheSavior Differential Revision: D7207462 fbshipit-source-id: 6dd5c5fd22c0a5a7d77331d6adf7b362c3d3e037
Configuration menu - View commit details
-
Copy full SHA for a8c4b63 - Browse repository at this point
Copy the full SHA a8c4b63View commit details -
RN: Delete Systrace.swizzleJSON
Reviewed By: TheSavior Differential Revision: D7207460 fbshipit-source-id: 14b1174d6a5c75e1acba7272376d1c462bc13cb6
Configuration menu - View commit details
-
Copy full SHA for 3e141cb - Browse repository at this point
Copy the full SHA 3e141cbView commit details -
Fix race condition when there're two flags next to each other
Reviewed By: yungsters Differential Revision: D7194598 fbshipit-source-id: a76328d63f649403de15503596a179c7baaf7dc3
Configuration menu - View commit details
-
Copy full SHA for 8803ab2 - Browse repository at this point
Copy the full SHA 8803ab2View commit details -
Make fetchSegment native hook name consistent with __ prefix
Reviewed By: jeanlauliac Differential Revision: D7205472 fbshipit-source-id: 4cef66539167ed47cf0ac8d3665c20114ffff375
Configuration menu - View commit details
-
Copy full SHA for 20fcf47 - Browse repository at this point
Copy the full SHA 20fcf47View commit details -
Clone ReactShadowNode when Yoga clones a YogaNode during layout
Reviewed By: achen1 Differential Revision: D7195840 fbshipit-source-id: d596e3ada8fe48577b91295721d41c0afd33087f
Configuration menu - View commit details
-
Copy full SHA for a7558d5 - Browse repository at this point
Copy the full SHA a7558d5View commit details -
Add extra debug information to ReactShadowNodes objects
Reviewed By: achen1 Differential Revision: D7195373 fbshipit-source-id: 6611726c3e1f92f387e00e733b1b8909a3e9edc2
Configuration menu - View commit details
-
Copy full SHA for e31781b - Browse repository at this point
Copy the full SHA e31781bView commit details -
Add "newProps" map into ReactShadowNode
Reviewed By: achen1 Differential Revision: D7205127 fbshipit-source-id: 6c27070806de36cab7adf9c392a10c815aee90d4
Configuration menu - View commit details
-
Copy full SHA for c883d4e - Browse repository at this point
Copy the full SHA c883d4eView commit details -
Fixing Assorted View Flow Types
Reviewed By: yungsters Differential Revision: D7209495 fbshipit-source-id: e4b247e947b3463ea1200298e6078c7485d636e7
Configuration menu - View commit details
-
Copy full SHA for 2520c64 - Browse repository at this point
Copy the full SHA 2520c64View commit details -
Making values optional in ViewPropTypes
Reviewed By: yungsters Differential Revision: D7209560 fbshipit-source-id: fd0c55c4f69648927380d12ad9a6b9bcb98047eb
Configuration menu - View commit details
-
Copy full SHA for f1316ca - Browse repository at this point
Copy the full SHA f1316caView commit details -
Add Sonar support to Oculus Twilight Android
Reviewed By: alex1kom Differential Revision: D7177071 fbshipit-source-id: 685d40e564d391d18592cedfcc12d8ac743a5331
Configuration menu - View commit details
-
Copy full SHA for a48b4d5 - Browse repository at this point
Copy the full SHA a48b4d5View commit details -
Adding FlowFixMe when switching between Component and Ref
Reviewed By: yungsters Differential Revision: D7215800 fbshipit-source-id: 175f769a2b1fc67e72b10e113a96eb4167437ab0
Configuration menu - View commit details
-
Copy full SHA for 25b8ec8 - Browse repository at this point
Copy the full SHA 25b8ec8View commit details -
AndroidInfoModule now also returns Android ID
Summary: Added Android ID as one of the constants returned by AndroidInfoModule Reviewed By: fkgozali Differential Revision: D7206029 fbshipit-source-id: 110b33235d3023b4a4607d37acc3440cfe735cef
Configuration menu - View commit details
-
Copy full SHA for 216c8ec - Browse repository at this point
Copy the full SHA 216c8ecView commit details -
Reviewed By: yungsters Differential Revision: D7215114 fbshipit-source-id: 867a7b897f27d415269c11572708afeb570b4be0
Configuration menu - View commit details
-
Copy full SHA for b6b80f6 - Browse repository at this point
Copy the full SHA b6b80f6View commit details -
Mock ReactNative.NativeComponent native methods in jest
Reviewed By: yungsters Differential Revision: D7218964 fbshipit-source-id: f4b25a533b7e150c978863ff8411dc80937a4fed
Configuration menu - View commit details
-
Copy full SHA for 3e9a371 - Browse repository at this point
Copy the full SHA 3e9a371View commit details -
Clear cache to resolve iOS, tvOS workflow
Summary: tvOS and iOS workflows were flaky, apparently due to a stale cache that contained a problematic version of the Metro dependency. Thanks to motiz88 for identifying the potential cause of flakiness in react-native-community/releases#2 (comment). https://circleci.com/workflow-run/440180a2-e888-4f27-bec9-b8e5d9be6708 [GENERAL] [MINOR] [CI] - Resolve iOS, tvOS failures in Circle Closes #18304 Differential Revision: D7220150 Pulled By: hramos fbshipit-source-id: 0f5e68c779dfce44e6deb8b813a3ac9e25a2ab97
Configuration menu - View commit details
-
Copy full SHA for c9d7562 - Browse repository at this point
Copy the full SHA c9d7562View commit details -
Tightening types for View and VirtualizedList
Reviewed By: yungsters Differential Revision: D7215391 fbshipit-source-id: fa144c0dc3fd897864403b589e943ea88e78a999
Configuration menu - View commit details
-
Copy full SHA for 5035af8 - Browse repository at this point
Copy the full SHA 5035af8View commit details
Commits on Mar 10, 2018
-
Reviewed By: BYK Differential Revision: D7214924 fbshipit-source-id: 4f50ec27e2dceb18e9ef82e741675df295235d74
Configuration menu - View commit details
-
Copy full SHA for 274d6ce - Browse repository at this point
Copy the full SHA 274d6ceView commit details -
Add existing Android checks to Circle.
Summary: Moving towards reusing existing scripts to ensure local and CI tests are kept in sync. Closes #18307 Differential Revision: D7222664 Pulled By: hramos fbshipit-source-id: ecce91e32159c55b19c29eab69a6754642f02236
Configuration menu - View commit details
-
Copy full SHA for 1ff1e57 - Browse repository at this point
Copy the full SHA 1ff1e57View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 26734a8 - Browse repository at this point
Copy the full SHA 26734a8View commit details -
Reviewed By: gabelevi Differential Revision: D7208080 fbshipit-source-id: 81380aca39b7a74646a4a44af1e5571bc5629b77
Configuration menu - View commit details
-
Copy full SHA for adabae2 - Browse repository at this point
Copy the full SHA adabae2View commit details
Commits on Mar 11, 2018
-
Fix Android Sanity Buck version check
Summary: [GENERAL] [MINOR] [./scripts/validate-android-test-env.sh] - Fix buck version check Closes #18311 Differential Revision: D7227452 Pulled By: hramos fbshipit-source-id: c7b32afc36821fbb2462317581ae32d3b257de03
Configuration menu - View commit details
-
Copy full SHA for e057322 - Browse repository at this point
Copy the full SHA e057322View commit details -
Move Text PropTypes to it's own file
Reviewed By: fkgozali Differential Revision: D7226404 fbshipit-source-id: b5637dee9a4f10daf0682e46f1ec8920ea03ae33
Configuration menu - View commit details
-
Copy full SHA for cd8128b - Browse repository at this point
Copy the full SHA cd8128bView commit details -
Fixing misuses of the Text type
Reviewed By: fkgozali Differential Revision: D7227752 fbshipit-source-id: 3577c86b416a7c04190063243839e98e2a80ec7f
Configuration menu - View commit details
-
Copy full SHA for 3fd82d3 - Browse repository at this point
Copy the full SHA 3fd82d3View commit details -
RN: Remove DebugEnvironment from OSS
Reviewed By: TheSavior Differential Revision: D7209266 fbshipit-source-id: 9f9ce66121ff375e5a5d965d58f4137616407853
Configuration menu - View commit details
-
Copy full SHA for 01fffa2 - Browse repository at this point
Copy the full SHA 01fffa2View commit details -
export CompositeAnimation type
Differential Revision: D7216928 fbshipit-source-id: 9e8c456c7e94ec3456061ad5c699c0eae30cbe5e
Configuration menu - View commit details
-
Copy full SHA for 450e562 - Browse repository at this point
Copy the full SHA 450e562View commit details
Commits on Mar 12, 2018
-
Use -fdata-sections in mode/opt
Differential Revision: D7194366 fbshipit-source-id: 676f2db2e493230b8d9698941f003ec4e96f15ea
Configuration menu - View commit details
-
Copy full SHA for 19dd9a2 - Browse repository at this point
Copy the full SHA 19dd9a2View commit details -
Loosen Platform check to allow better code sharing for out-of-tree pl…
…atforms Summary: Don't lock out other non-iOS platforms (e.g. Windows) with an overly specific check. This change allows this JS file to be re-used instead of copied and modified. There was one other instance of this pattern, but I'll submit it separate for easier cherry-picking. Tested Android and iOS playground on simulators. [GENERAL] [ENHANCEMENT] - some core ReactNative JS library files will be easier to re-use across RN platforms. Closes #18308 Differential Revision: D7230803 Pulled By: hramos fbshipit-source-id: 11e03183535a7453cee00dc1e795c27f2fd2bf5d
Configuration menu - View commit details
-
Copy full SHA for 84affbd - Browse repository at this point
Copy the full SHA 84affbdView commit details -
Fix tvOS react-native init release build (#18288)
Summary: Add correct dependencies and linker flags to the HelloWorld template Xcode project so that HelloWorld-tvOSTests builds correctly for release builds. Fixes #18288 . Tested with `react-native init --version=https://github.com/dlowder-salesforce/react-native#tvos-init-release-fix` . [IOS][BUGFIX][ local-cli/templates/ios/HelloWorld ]- fix release build for tvOS Closes #18337 Differential Revision: D7240376 Pulled By: hramos fbshipit-source-id: a4ad219e7d6b06bd6928d55ed7398f8fc9352e72
Configuration menu - View commit details
-
Copy full SHA for 3002c4e - Browse repository at this point
Copy the full SHA 3002c4eView commit details -
Don't truncate in the middle of an emoji
Reviewed By: adiphos, mantong01 Differential Revision: D7198155 fbshipit-source-id: 360955de7ed686170a23b9883058e3137e17b277
Configuration menu - View commit details
-
Copy full SHA for 9c8c597 - Browse repository at this point
Copy the full SHA 9c8c597View commit details -
Add support for springDamping in SpringInterpolator
Reviewed By: mdvacca Differential Revision: D7201334 fbshipit-source-id: 50929b4294188cd5a2a8ffa2080c38c0a9983535
Configuration menu - View commit details
-
Copy full SHA for 1dde989 - Browse repository at this point
Copy the full SHA 1dde989View commit details -
Support Image resizeMode=repeat on Android
Summary: `<Image resizeMode="repeat" />` for Android, matching the iOS implementation (#7968). (Non-goal: changing the component's API for finer-grained control / feature parity with CSS - this would be nice in the future) As requested in e.g. #14158. Given facebook/fresco#1575, and lacking the context to follow the specific recommendations in facebook/fresco#1575 (comment), I've opted for a minimal change within RN itself. It's likely that performance can be improved by offloading this work to Fresco in some clever way; but I'm assuming that the present naive approach is still an improvement over a userland implementation with `onLayout` and multiple `<Image>` instances. - Picking up on a TODO note in the existing code, I implemented `MultiPostprocessor` to allow arbitrary chaining of Fresco-compatible postprocessors inside `ReactImageView`. - Rather than extensively refactor `ImageResizeMode`, `ReactImageManager` and `ReactImageView`, I mostly preserved the existing API that maps `resizeMode` values to [`ScaleType`](http://frescolib.org/javadoc/reference/com/facebook/drawee/drawable/ScalingUtils.ScaleType.html) instances, and simply added a second mapping, to [`TileMode`](https://developer.android.com/reference/android/graphics/Shader.TileMode.html). - To match the iOS rendering exactly for oversized images, I found that scaling with a custom `ScaleType` was required - a kind of combination of `CENTER_INSIDE` and `FIT_START` which Fresco doesn't provide - so I implemented that as `ScaleTypeStartInside`. (This is, frankly, questionable as the default behaviour on iOS to begin with - but I am aiming for parity here) - `resizeMode="repeat"` is therefore unpacked by the view manager to the effect of: ```js view.setScaleType(ScaleTypeStartInside.INSTANCE); view.setTileMode(Shader.TileMode.REPEAT); ``` And the added postprocessing in the view (in case of a non-`CLAMP` tile mode) consists of waiting for layout, allocating a destination bitmap and painting the source bitmap with the requested tile mode and scale type. Note that as in #17398 (comment), I have neither updated nor tested the "Flat" UI implementation - everything compiles but I've taken [this comment](#12770 (comment)) to mean there's no point in trying to wade through it on my own right now; I'm happy to tackle it if given some pointers. Also, I'm happy to address any code style issues or other feedback; I'm new to this codebase and a very infrequent Android/Java coder. Tested by enabling the relevant case in RNTester on Android. | iOS | Android | |-|-| | <img src=https://user-images.githubusercontent.com/2246565/34461897-4e12008e-ee2f-11e7-8581-1dc0cc8f2779.png width=300>| <img src=https://user-images.githubusercontent.com/2246565/34461894-40b2c8ec-ee2f-11e7-8a8f-96704f3c8caa.png width=300> | Docs update: facebook/react-native-website#106 [ANDROID] [FEATURE] [Image] - Implement resizeMode=repeat Closes #17404 Reviewed By: achen1 Differential Revision: D7070329 Pulled By: mdvacca fbshipit-source-id: 6a72fcbdcc7c7c2daf293dc1d8b6728f54ad0249
Configuration menu - View commit details
-
Copy full SHA for 0459e4f - Browse repository at this point
Copy the full SHA 0459e4fView commit details
Commits on Mar 13, 2018
-
Summary: Utilizing ES6 Classes instead of createReactClass lets us actually enforce the way Text is used via Flow. Reviewed By: fkgozali Differential Revision: D7227755 fbshipit-source-id: 8e8285f9ebb3783a0dc4837c37c163178910ff9f
Configuration menu - View commit details
-
Copy full SHA for ab92c00 - Browse repository at this point
Copy the full SHA ab92c00View commit details -
Change newly imported file to MIT license
Summary: The project at large switched to MIT last month. A PR that was opened prior to the change was merged, this PR updates the file to use the correct license. None, trivial PR [ANDROID] [MINOR] [Image] Update license Closes #18343 Differential Revision: D7252836 Pulled By: hramos fbshipit-source-id: b7c207c782f4bf19c12d121e86f394e52326a5ab
Configuration menu - View commit details
-
Copy full SHA for 7a1c618 - Browse repository at this point
Copy the full SHA 7a1c618View commit details