-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
BREAKING: Android - ReactNativeHost getUseDeveloperSupport to public #11329
BREAKING: Android - ReactNativeHost getUseDeveloperSupport to public #11329
Conversation
…DevSupportPublic * upstream/master: Allow configuring the way CLI installs react-native
By analyzing the blame information on this pull request, we identified @foghina and @AaaChiuuu to be potential reviewers. |
@AaaChiuuu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Looks like Circle failed, I can't tell how to fix the failure though. |
I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification. |
As expected, we have some closed-source code that extends the application that we'll need to update. Error from internal CI:
|
@jpshelley Is this change going to break the build for anyone overriding this method as If yes, we need to clearly mark it as a breaking change (just did that). How common is to override this method? Will this break the build for a lot of people? |
…DevSupportPublic * upstream/master: Rename directories Use absolute paths from repo root Remove init from api CLI: Show npm / yarn output during 'react-native-init' when installing React and Jest
According to the react native documentation, it will be very common for others to override this.
Whats strange is UIExplorer (3rd link) already has it as public.
Yes this will unfortunately. It is a quick fix from changing the scope from |
* master: Implement onViewAppear by creating a new EventListener on ReactRootView listening for when it's attached to a RN Instance
@mkonicek Is this something we can move forward on still? Like I said, some applications use a single activity multiple fragment approach and this would allow for creating a React Fragment. |
I'm attempting to fix the breakage internally right now; we'll see how it goes. |
@AaaChiuuu it looks like the PR was accepted, however it didn't pick up all the changes. Was this intentional? I fear the example applications and any new ones started via the CLI won't build correctly. |
Crap, wanna send a new PR? |
@AaaChiuuu I can, can you not take the commits from this PR somehow? |
can't re-import the same PR |
Summary: Currently React Native is opinionated in that the easiest approach is to extend ReactActivity. However to more easily allow integrating with existing application, we should allow some of the methods in ReactNativeHost to be public, and this is a very good first step. * There is no harm in making this public from what I can tell. * This allows `ReactNativeHost` to be more easily used outside of the `ReactActivity` and `ReactActivityDelegate` ecosystem. (A `ReactFragment` would be a good example) _No issues found_ **Test plan (required)** * Run any sample app and verify it still works. Make sure tests pass on both Travis and Circle CI. Closes facebook#11329 Differential Revision: D4287429 Pulled By: AaaChiuuu fbshipit-source-id: 8cb76f3226aae3737af5f5bd6010d3eea8df9bfe
Summary: AaaChiuuu See: facebook#11329 Closes facebook#11505 Differential Revision: D4338559 Pulled By: AaaChiuuu fbshipit-source-id: 6cd1fd366a2bc30d496b7e907242e7f89a384a19
Summary: AaaChiuuu See: facebook/react-native#11329 Closes facebook/react-native#11505 Differential Revision: D4338559 Pulled By: AaaChiuuu fbshipit-source-id: 6cd1fd366a2bc30d496b7e907242e7f89a384a19
…er-flux # By Pavlo Aksonov (5) and others # Via Pavlo Aksonov (2) and aksonov (1) * 'master' of https://github.com/aksonov/react-native-router-flux: (24 commits) bump version Add selection view to show below navigationBarTitleImage (aksonov#1756) Maintain tab parentIndex when jumping tabs (aksonov#1775) disable Example tests because of new jest issues add 'fade' to direction type (aksonov#1705) update documentation for nested routing (aksonov#1742) update demo to work with latest React Native fixed issue aksonov#1688 (in accordance with facebook/react-native#11329) (aksonov#1691) use lodash's isEqual for property comparison (aksonov#1682) added icon to SceneProps type (aksonov#1546) Adding sizes NavBar for Windows (aksonov#1548) Added backAndroidHandler to routerProps typings (aksonov#1586) add `tabBarBackgroundImageStyle` prop (aksonov#1611) Changes drawer button side according with drawer.props.side (aksonov#1584) Fix for panGestures and Animation (aksonov#1618) Change back button direction in RTL mode (aksonov#1661) Add navBarTitleImage prop (aksonov#1663) Revert "pass props" (aksonov#1660) pass props (aksonov#1549) fix dependencies ... Conflicts: src/NavBar.js
A breaking change made `getUseDeveloperSupport` public facebook/react-native#11329
Summary: AaaChiuuu See: facebook/react-native#11329 Closes facebook/react-native#11505 Differential Revision: D4338559 Pulled By: AaaChiuuu fbshipit-source-id: 6cd1fd366a2bc30d496b7e907242e7f89a384a19
A breaking change made `getUseDeveloperSupport` public facebook/react-native#11329
A breaking change made `getUseDeveloperSupport` public facebook/react-native#11329
Overview
Currently React Native is opinionated in that the easiest approach is to extend ReactActivity. However to more easily allow integrating with existing application, we should allow some of the methods in ReactNativeHost to be public, and this is a very good first step.
ReactNativeHost
to be more easily used outside of theReactActivity
andReactActivityDelegate
ecosystem. (AReactFragment
would be a good example)Addresses / Changes
No issues found
Test plan (required)
Make sure tests pass on both Travis and Circle CI.