Skip to content
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

Add Native Components guide. #958

Merged
merged 1 commit into from
Apr 21, 2015
Merged

Conversation

sahrens
Copy link
Contributor

@sahrens sahrens commented Apr 21, 2015

No description provided.

@sahrens sahrens force-pushed the nativeComponentGuide branch 4 times, most recently from 6357f5f to d925d78 Compare April 21, 2015 23:00

Let's say we want to add an interactive Map to our app - might as well use [`MKMapView`](https://developer.apple.com/library/prerelease/mac/documentation/MapKit/Reference/MKMapView_Class/index.html), we just need to make it usable from JavaScript.

Native views are created and manipulated by subclasses of `RCTViewManager`. These subclasses are similar in function to view controllers, but are essentially singletons - only one instance of each is created by the bridge. They vend native views to the `RCTUIManager`, which delegates back to them to set and update the properties of the views as necessary. The `RCTViewManager`s are also typically the delegates for the views, sending events back to JavaScript via the bridge.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"they vend" -> "they send"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scratch that, read the next paragraph and it makes sense ;P

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 21, 2015
@brentvatne
Copy link
Collaborator

Great job @sahrens - this will help a lot of people!

@sahrens sahrens force-pushed the nativeComponentGuide branch from d925d78 to c5d367a Compare April 21, 2015 23:22
@sahrens
Copy link
Contributor Author

sahrens commented Apr 21, 2015

Yeah, been meaning to write this for a while but wanted requireNativeComponent to land first ;)

sahrens added a commit that referenced this pull request Apr 21, 2015
@sahrens sahrens merged commit eef4096 into facebook:master Apr 21, 2015
@sahrens sahrens deleted the nativeComponentGuide branch April 21, 2015 23:23
ayushjainrksh pushed a commit to MLH-Fellowship/react-native that referenced this pull request Jul 2, 2020
[FlatList] Add note on multi-column layouts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants