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

[v4] | [v2] BottomSheetScrollView & FlatList crashing with newArchEnabled=true #1762

Closed
Martin2037 opened this issue Mar 1, 2024 · 3 comments
Labels
bug Something isn't working no-issue-activity

Comments

@Martin2037
Copy link

Martin2037 commented Mar 1, 2024

Bug

app crashing on IOS, when items need to scroll using newArchEnabled=true
image

Environment info

System:
OS: macOS 14.2.1
CPU: (10) arm64 Apple M1 Pro
Memory: 182.92 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.9.0
path: /usr/local/bin/node
Yarn:
version: 1.22.19
path: /usr/local/bin/yarn
npm:
version: 9.4.0
path: /usr/local/bin/npm
Watchman:
version: 2024.01.22.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/zhujunyang/.rubies/ruby-3.3.0/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 15.1/15C65
path: /usr/bin/xcodebuild
Languages:
Java:
version: 18.0.2
path: /usr/bin/javac
Ruby:
version: 3.3.0
path: /Users/zhujunyang/.rubies/ruby-3.3.0/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true

Library Version
"@gorhom/bottom-sheet": "4.6.1",
"react-native-gesture-handler": "2.15.0",
"react-native-reanimated": "3.6.2",
"react-native": "0.73.5",

Steps To Reproduce

  1. install libs using yarn
  2. enable new arch
  3. create BottomSheet with BottomSheetScrollView
  4. try to render data until container need to scroll

Describe what you expected to happen:

  1. app not crashing with newArchEnabled=true

Reproducible sample code

  <BottomSheet
    snapPoints={['50%']}
    index={0}
  >
    <Box bg={'$coolGray200'} flex={1}>
      <BottomSheetFlatList style={{ flex: 1 }} data={[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]} renderItem={({ item }) => (
        <Text>{item}</Text>
      )}/>
    </Box>
  </BottomSheet>
@Martin2037 Martin2037 added the bug Something isn't working label Mar 1, 2024
@Martin2037 Martin2037 changed the title [v4] | [v2] BottomSheetScrollView crashing with newArchEnabled=true [v4] | [v2] BottomSheetScrollView & FlatList crashing with newArchEnabled=true Mar 1, 2024
@RalissonMattias
Copy link

Duplicate #1726

Copy link

github-actions bot commented Apr 3, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Copy link

github-actions bot commented Apr 9, 2024

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants