PlatformColor crashes on android if resource colour is supplied #38950
Labels
Bug
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Platform: Android
Android applications.
Description
While testing for 0.72.x patch, Android is crashing when tapped on
Border
example. I narrowed it down to one point which was causing the crash. As seen in the attached screenshots,PlatformColor
when passed android resource color returns a map which conflicts from the expectedInt
type.react-native/packages/rn-tester/js/examples/Border/BorderExample.js
Line 188 in fe804b8
Tracked it back to 0.71-stable branch and the issue is there too.
React Native Version
0.72-stable
Output of
npx react-native info
Steps to reproduce
yarn install
yarn test-e2e-local -t RNTester -p Android -h true -c CCIPAT_asd
Snack, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: