Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

How do I enable touch on multiple buttons simultaneously in react native?

$
0
0

I need that when I am touching and holding one button then I should also be able to touch on the button 1.

<View><View   onStartShouldSetResponder={()=>this.console("Button 2 Clicked")}><Text>BUTTON 2</Text></View><TouchableOpacity   onPressIn={()=>this.console('Button 1 pressed')}  onPressOut={()=>this.console('Button 1 released')}><View><Text>BUTTON 1</Text></View></TouchableOpacity></View>

Basically, I have a screen where I can record a video by tapping and holding the record button(Button 1). On the same screen, I have a flip camera button (Button 2). I want that I should be able to click on the flip camera button while I am recording the video.


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>