Skip to content

Data seems to be retained even after unmounting? #6

Open

Description

@marqroldan

Just checking if this is a normal scenario..

Edit: sorry for the bad issue description

Here are the project details:

    "@react-navigation/drawer": "^7.3.9",
    "@react-navigation/native": "^7.1.6",
    "@react-navigation/stack": "^7.3.3",
    "react": "19.1.0",
    "react-dom": "19.1.0",
    "react-native": "0.81.4",
    "react-native-pencil-kit": "^1.2.3",
    "react-native-reanimated": "~4.1.5",
    "react-native-screens": "~4.16.0",

      <ScrollView
        scrollEnabled={false}
        style={{
          aspectRatio: 1500 / 1000,
          flex: 1,
          maxHeight: 1000,
          maxWidth: 1500,
          borderWidth: 1,
          borderColor: 'green',
        }}
        contentContainerStyle={{flexGrow: 1}}
        maximumZoomScale={1.5}
        minimumZoomScale={0.5}>
        <PencilKitView style={styles.canvas} />
      </ScrollView>

I'm currently tracking code on Xcode but - (void)dealloc { isn't being called at all
- (void)willMoveToSuperview:(UIView *)newSuperview { is at least called when the screen exits

It felt like it's something due to rn-screens (since our routes are using the Native stack..) and this may be a related issue

software-mansion/react-native-screens#2007

haven't read it yet tho, will edit again!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions