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

Example App, Card screen: Force Close/Error on the last three Pressable Cards #3511

Closed
itswil opened this issue Dec 7, 2022 · 0 comments
Closed

Comments

@itswil
Copy link

itswil commented Dec 7, 2022

Current behaviour

When viewing the Cards screen in the Example App, tapping one of the bottom three Pressable Cards causes a forced close (it seems to occur with onPress or onPressIn)

Tested on:
Poco F4
Android 12

Expected behaviour

The onPress functions should get called without a forced close occurring

How to reproduce?

Open the React Native Paper example app (on a real device or Simulator/Emulator)
Click on Card
Scroll down until you can see the "Pressable Chameleon" card
Tap on card

Preview

Screenshots from iOS Simulator (iOS 16.1)
Group 1

Screenshots from Android Emulator (Pixel 5 API 32)
Group 1

What have you tried so far?

I've isolated it down to the onPress and onLongPress props on the Card components in CardExample.tsx

Your Environment

software version
ios 16.1
android 12
react-native 0.69.6
react-native-paper N/A, it affects the Example App
node 16.16.0
yarn 1.22.19
expo sdk 6.0.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants