openspacelabs / react-native-zoomable-view

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
MIT License
191 stars 58 forks source link

Always on top? #20

Closed codelocksdev closed 2 years ago

codelocksdev commented 2 years ago

I can't seem to find any information about this in the docs, but I'm trying to get my zoomable view to always be on top of other components when the zoom causes them to overlap. This doesn't seem to be the case by default. Setting the zIndex in the style props of the zoomable view doesn't work either.

Do you have a solution on how to implement this?

thomasttvo commented 2 years ago

Are you trying to achieve something like this?

<View>
    <SomeComponent />
    <View style={StyleSheet.absoluteFill}>
        <ReactNativeZoomableView />
    </View>
</View>

We can provide a better answer if you could elaborate more on the problem you're trying to solve