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
Docs: Updated iOS Component Guide #14991
Conversation
``` | ||
|
||
Make sure to use `RNTMap` here. We want to require the manager here, which will expose the view of our manager for use in Javascript. |
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.
docs/NativeComponentsIOS.md
Outdated
|
||
#import "RNTMapManager.h" | ||
```objectivec{9,17,31-48} |
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.
Does objectivec{9,17,31-48}
creates a highlight for the ReactNative docs as well?
this._onChange = this._onChange.bind(this); | ||
} | ||
_onChange(event: Event) { | ||
_onRegionChange = (event) => { |
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.
Removed typehint (since none of the other code is using it). And removed the ugly .bind(this). Not sure if this is okay in the sample code, please review.
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's alright.
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.
Thanks for doing this! This is a great example of the community stepping in to give some love to the docs.
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
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. |
e3546aa
to
e10bcf1
Compare
You're welcome! Would be great to contribute a bit more in the next months.
Yeah ✅
Rebased just to be sure ✅ |
Investigating. |
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Great! Thanks @hramos! |
Follow up on #14436
@hramos:
I'm volunteering to get it back up to date!
pitchEnabled
forzoomEnabled
, needs less explaining and it's easier to test on a simulator.onChange
s to onRegionChange`.I wasn't really sure about the last 3 points. I think it's more clear like this, but please review.
I'll add some review comments as well.