Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

[WIP] Fixes for ReactNative on Fiber #528

Closed
wants to merge 3 commits into from

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Feb 16, 2017

WIP

Not sure if that one gets merged but it fixes other issues so it's likely.
Also switch it to use the same `updater` code path both in Stack and Fiber.
This removes knowledge about internal data structure from the frontend.
@gaearon gaearon force-pushed the fiber-devtools-fixes branch from 5fdb287 to f860840 Compare February 16, 2017 19:53
* We shouldn't rely on the assumption that we're operating on current Fiber
* The idea to unify updaters with setInProps() was a bad one because setNativeProps() signature is too different
@@ -112,6 +112,15 @@ function getData(element: Object): DataType {
}
}

if (typeof element.setNativeProps === 'function') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note to self: this depends on how we expose host instances in the end.

It might be that we'll just expose this from RN renderer instead, and it will have to inject setNativeProps(tag) just like it does with resolveStyle().

@bvaughn
Copy link
Contributor

bvaughn commented May 30, 2017

Closing in favor of a new branch, pushed to facebook/react-devtools so Dom and I can both work on it, with conflicts from master resolved. 😄

@bvaughn bvaughn closed this May 30, 2017
@bvaughn bvaughn mentioned this pull request May 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants