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

Cannot use inside Animated.FlatList #79

Open
morajabi opened this issue Nov 4, 2023 · 8 comments
Open

Cannot use inside Animated.FlatList #79

morajabi opened this issue Nov 4, 2023 · 8 comments

Comments

@morajabi
Copy link

morajabi commented Nov 4, 2023

It opens correctly but on close it crashes the app.

CleanShot.2023-11-04.at.13.19.47.mp4
CleanShot 2023-11-04 at 13 18 31@2x

error

Error: domain: react-native-ios-utilities - code: nilReactBridge - description: Unable to get ref. to react bridge - fileName: /Users/mo/dev/noor/node_modules/react-native-ios-utilities/ios/Sources/Helpers/RNIModuleHelpers.swift - functionName: getReactBridge(withErrorType:) - lineNumber: 18 - columnNumber: 27
@nandorojo
Copy link
Collaborator

Possible duplicate or #70

@nandorojo
Copy link
Collaborator

Have you tried FlashList

@nandorojo
Copy link
Collaborator

And are you on RN 0.72.5+

@morajabi
Copy link
Author

morajabi commented Nov 4, 2023

Unfortunately FlashList falls short for inverted usecase, messages frequently overlap over each other and it doesn't support sticky items properly while inverted. We recently had to switch to FlatList.
We use RN 0.72.6.

@nandorojo
Copy link
Collaborator

And making FlashList not be animated fixes it?

@morajabi
Copy link
Author

morajabi commented Nov 5, 2023

@nandorojo Yes. But also I noticed a new thing. Clicking one of our menu items caused the crash, but in production it was fine.

@nandorojo
Copy link
Collaborator

In my case, quitting the dev app and restarting fixed this

@morajabi
Copy link
Author

morajabi commented Nov 5, 2023

I'll try again with Animated FlatList with this suggestion

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