[ad_1]
I’ve a button that I want displayed on prime of one other factor in React Native. I’ve given the button a place of “absolute” and a flex: 1, and it really works and appears stunning on android, however on iOS, it does not let the consumer click on the button. Is there one thing I’m lacking?
The factor that the button must be on prime of is a video participant, which the consumer additionally wants to have the ability to click on to pause/play.
Listed below are the weather:
<VideoPlayer
shouldPlay={true}
useNativeControls={true}
resizeMode={"include"}
supply={{
uri:
"http://commondatastorage.googleapis.com/gtv-videos-bucket/pattern/BigBuckBunny.mp4",
}}
fashion={types.video}
/>
<View fashion={types.exitButton}>
<ExitButton onPress={backNavigation} />
</View>
Listed below are the types:
exitButton: {
place: "absolute",
alignItems: "flex-end",
justifyContent: "flex-end",
flex: 1,
width: "100%",
paddingBottom: 250
},
video: {
peak: "100%",
width: "100%",
flex: 2
},
[ad_2]
