Skip to content

documented NativeMethodsMixin - #3238

Closed
corbt wants to merge 1 commit into
react:masterfrom
corbt:nativemethods_docs
Closed

documented NativeMethodsMixin#3238
corbt wants to merge 1 commit into
react:masterfrom
corbt:nativemethods_docs

Conversation

@corbt

@corbt corbt commented Oct 5, 2015

Copy link
Copy Markdown
Contributor

This is related to the discussion in #3155.

I've documented the methods in this mixin, and pointed to other appropriate documentation where necessary as well.

I didn't end up adding any examples. I wanted to add a focus()/blur() example to the UIExplorer app, but the app seems to be broken on master at the moment (Requiring unknown module "event-target-shim") and I didn't bother trying to fix it. I think the last thing necessary for making the usage of these methods clear is an example of calling one or more of them on a ref or view captured in some other way. However, setNativeProps is well documented in the "Direct Manipulation" guide, which I link to from this page, so by extension it should be possible to figure out the functionality of the other methods.

cc @mkonicek @astreet

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Oct 5, 2015
@mkonicek mkonicek self-assigned this Oct 7, 2015
@mkonicek

mkonicek commented Oct 7, 2015

Copy link
Copy Markdown
Contributor

Nice! Thanks a lot!

@facebook-github-bot shipit

@facebook-github-bot

Copy link
Copy Markdown
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/678035415658680/int_phab to review.

@mkonicek

mkonicek commented Oct 7, 2015

Copy link
Copy Markdown
Contributor

Merging this internally, made some minor adjustments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I removed this empty line to make this render correctly: http://imgur.com/IDu30rX

To test rendering locally:

$ cd website
$ npm start
...
Open http://localhost:8079/react-native/index.html

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Huh yeah I had tested it with local rendering using the instructions you mentioned, and it seemed to be formatted ok on my machine even with that newline. But whatever, glad it works now!

@ghost ghost closed this in 381e2ac Oct 7, 2015
MattFoley pushed a commit to skillz/react-native that referenced this pull request Nov 9, 2015
Summary: This is related to the discussion in react#3155.

I've documented the methods in this mixin, and pointed to other appropriate documentation where necessary as well.

I didn't end up adding any examples. I wanted to add a `focus()`/`blur()` example to the UIExplorer app, but the app seems to be broken on master at the moment (`Requiring unknown module "event-target-shim"`) and I didn't bother trying to fix it. I think the last thing necessary for making the usage of these methods clear is an example of calling one or more of them on a `ref` or view captured in some other way. However, `setNativeProps` is well documented in the "Direct Manipulation" guide, which I link to from this page, so by extension it should be possible to figure out the functionality of the other methods.

cc @mkonicek @​astreet
Closes react#3238

Reviewed By: @​svcscm

Differential Revision: D2517187

Pulled By: @mkonicek

fb-gh-sync-id: 4e68b2bc44ace83f06ae2e364ca0c23a7c461b20
Crash-- pushed a commit to Crash--/react-native that referenced this pull request Dec 24, 2015
Summary: This is related to the discussion in react#3155.

I've documented the methods in this mixin, and pointed to other appropriate documentation where necessary as well.

I didn't end up adding any examples. I wanted to add a `focus()`/`blur()` example to the UIExplorer app, but the app seems to be broken on master at the moment (`Requiring unknown module "event-target-shim"`) and I didn't bother trying to fix it. I think the last thing necessary for making the usage of these methods clear is an example of calling one or more of them on a `ref` or view captured in some other way. However, `setNativeProps` is well documented in the "Direct Manipulation" guide, which I link to from this page, so by extension it should be possible to figure out the functionality of the other methods.

cc @mkonicek @​astreet
Closes react#3238

Reviewed By: @​svcscm

Differential Revision: D2517187

Pulled By: @mkonicek

fb-gh-sync-id: 4e68b2bc44ace83f06ae2e364ca0c23a7c461b20
@corbt
corbt deleted the nativemethods_docs branch February 3, 2016 12:31
This pull request was closed.
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.

3 participants