-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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 native-modules-android.md #2791
Conversation
Hi @simonbrunou! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
✔️ Deploy Preview for react-native ready! 🔨 Explore the source changes: 8cd30cc 🔍 Inspect the deploy log: https://app.netlify.com/sites/react-native/deploys/615c74708fc8ef0007dc1588 😎 Browse the preview: https://deploy-preview-2791--react-native.netlify.app |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
1 similar comment
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you post what exception you got and share a link to the native module which implemented this?
When omitting `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method. When omitting `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method. I cannot share a link to the native module which implemented this when I was confronted with the problem as it is proprietary source code. However I can put together a file that implements it quickly, if needed. |
Thanks @simonbrunou for improving our docs! This was definitely incomplete without the examples that you added. Can you please address my comment so we can merge it? Thanks! |
I think it's done, however I'm not familiar with GitHub's interface so correct me if I did something wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @simonbrunou, thank you for bringing this topic up! 👍
Since the change landed in 0.65
release (facebook/react-native@114be1d), please update also versioned docs for 0.65
and 0.66
besides the next
file:
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Those two methods are missing in the documentation and an exception is sent if they are not in the code.
I rebased on main and added the changes to the documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you did not force push after rebase, which leads to malformed PR, please fix that. 😉
It should be good now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates! 👍
From the technical standpoint it LGTM, but let's wait with the merge for the @rubennorte approval on the wording/description changes. 🙂
I think we can still improve the comment. I don't think the current one is useful to tell people what this is for, only that's required. We could say something like what we say on iOS. So instead of:
We could use something like:
@simonbrunou could you please make these changes? Sorry for the back and forth. |
Updated the files 👍 |
Thanks for improving our website, @simonbrunou! |
* Add a note about where to place the Gradle vars (facebook#2776) Co-authored-by: Gijs Weterings <[email protected]> * Update appstate.md (facebook#2778) Co-authored-by: Bartosz Kaszubowski <[email protected]> * Animations: remove unused style object (facebook#2780) * Force `trim@^1.0.1` resolution (facebook#2782) * Bump axios from 0.21.1 to 0.21.4 (facebook#2783) Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.4. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md) - [Commits](axios/axios@v0.21.1...v0.21.4) --- updated-dependencies: - dependency-name: axios dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add help relating to Android intent queries (facebook#2774) * Add help relating to Android intent queries On Android 11 in order for `Linking.canOpenUrl` to return `true` the scheme/intent must be specified in AndroidManifest.xml and queryable. This is not currently clear in the documentation even though specific instructions are given for iOS. * Tweaks from prettier linting. * Fix spelling mistakes. Co-authored-by: Gijs Weterings <[email protected]> * Ensure AndroidManifest.xml example matches the descriptive text. Co-authored-by: Gijs Weterings <[email protected]> * Improve wording in the description for the example code. Co-authored-by: Gijs Weterings <[email protected]> * Split sentence in two to improve readability Co-authored-by: Gijs Weterings <[email protected]> Co-authored-by: Gijs Weterings <[email protected]> * docs: add fragment to native-components-android.md (facebook#2599) * docs: add fragment to native-components-android.md As a Javascript / React-Native developer I had a hard time figuring out how to integrate a custom native SDK to React Native with the help of Android Fragments. Please correct anything that you wish. This information took me 3 days to figure out, especially the part with `setupLayout` and `manuallyLayoutChildren` so I wish an example like this was available in the official documentation. I was expecting the code without `setupLayout` and `manuallyLayoutChildren` but i had no luck. If somebody has any better solution in your team, or any explanation, it would also be really nice to state in the documentation * chore: fix linting errors * chore: fix alex errors * docs: update native-components-android.md * docs: update native-components-android.md - add missing imports - remove extra spaces - remove unnecessary double cast - remove unnecessary comment * Bump semver-regex from 3.1.2 to 3.1.3 (facebook#2788) Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.2 to 3.1.3. - [Release notes](https://github.com/sindresorhus/semver-regex/releases) - [Commits](https://github.com/sindresorhus/semver-regex/commits) --- updated-dependencies: - dependency-name: semver-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump prismjs from 1.24.0 to 1.25.0 (facebook#2787) Bumps [prismjs](https://github.com/PrismJS/prism) from 1.24.0 to 1.25.0. - [Release notes](https://github.com/PrismJS/prism/releases) - [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md) - [Commits](PrismJS/prism@v1.24.0...v1.25.0) --- updated-dependencies: - dependency-name: prismjs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove the link to 2021 React Community Survey (facebook#2784) * Bump ansi-regex to ^5.0.1 to fix CVE-2021-3807 (facebook#2794) * Release 0.66 Post (facebook#2797) * Add post and assets * Fix lint * Update links and image * Ignore alex warning * Fix linking for highlights * Capitalize Bluetooth and align titles * Capitalize Bluetooth and align titles * Missed one Bluetooth * Credit mikehardy * Cut 0.66 docs (facebook#2798) * update link troubleshooting (facebook#2799) * Update handling-text-input.md (facebook#2795) * Update tsconfig.json example (facebook#2796) * fix preview deploy failure due to links in older blog posts (facebook#2803) * add section of `stickyHeaderHiddenOnScroll` option (facebook#2801) * Update native-modules-android.md (facebook#2791) * Update native-modules-android.md Those two methods are missing in the documentation and an exception is sent if they are not in the code. Co-authored-by: Simon BRUNOU <[email protected]> * Update linking.md (facebook#2802) * [Docs] Add an asterisk note to the hermes bundle is in use (facebook#2804) Co-authored-by: Raquel Smith <[email protected]> Co-authored-by: Gijs Weterings <[email protected]> Co-authored-by: Luis Durão <[email protected]> Co-authored-by: Bartosz Kaszubowski <[email protected]> Co-authored-by: Titus Efferian <[email protected]> Co-authored-by: Timothy Yung <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Leonard <[email protected]> Co-authored-by: Fazekas Dániel <[email protected]> Co-authored-by: Ivan Moskalev <[email protected]> Co-authored-by: Nicola Corti <[email protected]> Co-authored-by: Luna <[email protected]> Co-authored-by: Luis Medina Huerta <[email protected]> Co-authored-by: Nana Asiedu-Ampem <[email protected]> Co-authored-by: David NRB <[email protected]> Co-authored-by: guruguru-dekiruko <[email protected]> Co-authored-by: Simon <[email protected]> Co-authored-by: Simon BRUNOU <[email protected]> Co-authored-by: Jens Kuhr Jørgensen <[email protected]> Co-authored-by: limaAniceto <[email protected]>
Those two methods are missing in the documentation and an exception is sent if they are not in the code.