Replies: 13 comments 22 replies
-
When I first read the above it was not clear why there is this alternation of threads happening with the commit and mounting phase. It only made sense after reading The Threading Model Post. Maybe it would be worth linking it there and introducing how priority updates impact the render pipeline? |
Beta Was this translation helpful? Give feedback.
-
Small nit, but a quality of life improvement, it would be for The Render Pipeline post to have linkable headders to each phase: I only understood that section under the image was related to one of the rendering phases after the second one I think. |
Beta Was this translation helpful? Give feedback.
-
About the View Flattening post. From following along I interpreted that View Flattening is skipped in some cases, could we expand on that or document it in the post? specially since an app that unknownly causes View flattenning to not occur could have worse peformance. |
Beta Was this translation helpful? Give feedback.
-
In the discrete event interruption. When it states that "React and the renderer are able to interrupt the render phase and merge its state with a high priority event that was executed on the UI thread." Does it mean the rendering that was happening in the JS thread will continue in the UI thread alongside the high priority event? |
Beta Was this translation helpful? Give feedback.
-
Nit: In the architecture overview it would be nice to point out how knowing the architecture is not a pre-requisite to being a good React Native developer. Knowing how the technical recruiting world works and how well detailed the deep-dive is it will not be a surprise if technical interviews start to ask questions related to the inner workings of React Native. We shoud try to discourage that behavior. |
Beta Was this translation helpful? Give feedback.
-
nit: the link is not correct in |
Beta Was this translation helpful? Give feedback.
-
i think we should add a page/documentation for the |
Beta Was this translation helpful? Give feedback.
-
nit: the link is pointing to |
Beta Was this translation helpful? Give feedback.
-
in Render Pipeline > React State Update
I think it would be clear/helpful to reference the previous example cloned node : |
Beta Was this translation helpful? Give feedback.
-
@cortinico I was confused about the rendering performance of fabric. I wrote a demo to test the rendering performance of fabric. I rendered 1000 TestComponent components in scrollview. The previous JS Bridge architecture took more than 700 milliseconds ,how ever Fabric takes more than 1400 milliseconds, rendering performance of fabric is worse than before? I am very confused,repo url:https://github.com/bozaigao/FabricDemo |
Beta Was this translation helpful? Give feedback.
-
I'm using this repo (
https://github.com/talknagish/react-native-turbo-starter) to test out
Fabric but am experiencing issues suggesting some native components are
32bit and need to be 64bit so won't build because the JVM is running out of
memory.
Before I go crazy trying to fix this, I tried:
//gradle.properties
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx4096m
and
//app/build.gradle
defaultConfig {
ndk.abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
...
}
any other suggestions?
thanks
…On Sun, Jun 5, 2022 at 11:55 AM 波仔糕 ***@***.***> wrote:
@cortinico <https://github.com/cortinico> I was confused about the
rendering performance of fabric. I wrote a demo to test the rendering
performance of fabric. I rendered 1000 TestComponent components in
scrollview. The previous JS Bridge architecture took more than 700
milliseconds ,how ever Fabric takes more than 1400 milliseconds, rendering
performance of fabric is worse than before? I am very confused,repo url:
https://github.com/bozaigao/FabricDemo
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQHNB4P7DUNLY3MN2XUZXLVNTEV5ANCNFSM5O624YWQ>
.
You are receiving this because you are subscribed to this thread.Message
ID:
<reactwg/react-native-new-architecture/repo-discussions/1/comments/2886617
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
I haven't made any modifications to the existing repo. I cloned it, ran
yarn install, on my windows machine, then ran yarn android just as it said.
The first error said it couldn't find a specific cmake version in the SDK
path. So I added cmake.dir to local.properties and pointed it to the
missing version as suggested.
I tried running yarn android again and this time it stalled at
app:something. Eventually, the jvm ran out of memory. That's when I saw the
message (paraphrasing) 'native modules need to run 64bit'.
I googled around, hoping their might be a quick fix but so far no luck.
Thanks.
…On Sun, Jun 5, 2022, 2:50 PM Subramanya Chakravarthy < ***@***.***> wrote:
Curious what are you building that needs 64bit number??
—
Reply to this email directly, view it on GitHub
<#1 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQHNB5UJ7O6MU2DKFVOQFLVNTZGPANCNFSM5O624YWQ>
.
You are receiving this because you commented.Message ID:
<reactwg/react-native-new-architecture/repo-discussions/1/comments/2887055
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
It was mentioned that the render phase is the phase that creates the React tree and shadow tree. However, in "Discrete event interruption", section it was mentioned that the render stage may run on the UI thread. In what cases can the React tree be reconciled on the UI thread? Or does the render step in the UI thread only mean changing the shadow tree? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm opening this discussion to discuss about one of the component of the New React Native Architecture: the Fabric Renderer.
Feel free to ask your questions/ideas/doubts related to this Fabric in this discussion.
Relevant resources
Beta Was this translation helpful? Give feedback.
All reactions