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

How to implement this correctly? #21

Open
swizes opened this issue Apr 5, 2022 · 1 comment
Open

How to implement this correctly? #21

swizes opened this issue Apr 5, 2022 · 1 comment

Comments

@swizes
Copy link

swizes commented Apr 5, 2022

If I add the code below into my index.js in react-native, is it going to work as intended for the screens which are deep in stack hierarchy?

import { enableFreeze } from "react-native-screens";

enableFreeze(true);

Or do i need apply the usage below on every screen

function SomeComponent({ shouldSuspendRendering }) {
  return (
    <Freeze freeze={shouldSuspendRendering}>
      <MyOtherComponent />
    </Freeze>
  );
}
@chakrihacker
Copy link

Enablefreeze should be enough for navigation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants