software-mansion/react-freeze

Enable for tab navigation

nandorojo opened this issue · 4 comments

Could you recommend a way to add freezing to react navigation's blurred tabs?

Any updates on this @nandorojo

We are trying to achieve the same by using this pattern but not sure whether it is the right way to do it.

export const SettingsWrapper = (): JSX.Element => {
  const isFocused = useIsFocused();
  return (
    <Freeze freeze={!isFocused}>
      <SettingsContainer />
    </Freeze>
  );
};

I think the tabs support freezing now as an option

Can you elaborate more?