You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix BorderExample Crash on Out of Tree Platforms (#32120)
Summary:
9b4f8e0#diff-ee44452e2deeb3a607e863852bb720518875b88c4e78ea7dc76805488bfb1818 added examples to the border test page using PlatformColor. An iOS specific instance was later conditioned to only iOS in f6d0f9d#diff-ee44452e2deeb3a607e863852bb720518875b88c4e78ea7dc76805488bfb1818 but one example remains that has values for Android, and iOS only. This causes a crash on at least RNW, since none of the PlatformColors are valid.
This change addsa a fallback to black for unsupported platforms, and also adds a Windows PlatformColor for kicks (and marginal extra usefuleness).
## Changelog
[Internal] [Fixed] - Fix BorderExample Crash on Out of Tree Platforms
Pull Request resolved: #32120
Test Plan: Validated on RNTester on Windows.
Reviewed By: yungsters
Differential Revision: D30822765
Pulled By: lunaleaps
fbshipit-source-id: 6b3e65204259205bb2f3c9153a2361d1decebe98
0 commit comments