bamlab / react-native-image-header-scroll-view

ScrollView with an image in header which becomes a navbar
MIT License
997 stars 99 forks source link

TriggeringView on Android #44

Open Amurmurmur opened 6 years ago

Amurmurmur commented 6 years ago

Apparently exactly the same code for the TriggeringView doesnt work properly on an Android.

Here is the code:

<TriggeringView
    onHide={() => alert("Hide")}
    onBeginDisplayed={() => alert("Show")}
>
<View style={{ flex: 1 }}>
<Text>Show and hide me</Text>
</View>
</TriggeringView>

The exact same code works just fine on iOS.

Amurmurmur commented 6 years ago

aaah its alright, I just had to set flex: 1 to the triggering view Update: Actually only these triggers are available on Android:

          onDisplay={() => alert('onDisplay')}
          onBeginHidden={() => alert('onBeginHidden') }