Fix pointerEvents, other props on SafeAreaView not working on Android#130
Conversation
…ps works on Android
janicduplessis
left a comment
There was a problem hiding this comment.
Nice! Thanks for the fix
|
@janicduplessis seems we have the same issue with 4.1.2 |
|
I see, we’re no longer extending ReactViewGroupManager in 4.0, and it seems a bit harder to do now with support for new architecture, I’ll have a look. |
|
@Willham12 Should be fixed in 4.1.4 |
|
@janicduplessis SafeAreaProvider has same problems. Properties like |
|
|
@account-mhj have you solved this problem? |
Summary
Because SafeAreaViewManager extends
ViewGroupManager, some props on<View>that are handled byReactViewManagerand other classes that extendViewGroupManageraren't handled. Notably, this includespointerEvents, which can be used to make the SafeAreaView ignore taps when it's used as an overlay.Test Plan
I installed a branch containing the fix to my own app.
To test this, create an instance of
<SafeAreaView style={{ flex: 1 }} pointerEvents="box-none">that overlays a button or map. The button should be tappable and the map should be pannable.