77 View ,
88 Alert ,
99 TouchableHighlightProps as RNTouchableHighlightProps ,
10+ Button ,
1011} from 'react-native' ;
1112
1213import {
@@ -21,7 +22,8 @@ import {
2122} from 'react-native-gesture-handler' ;
2223import Slider from '@react-native-community/slider' ;
2324
24- import { Swipeable , InfoButton } from '../rows' ;
25+ import Swipeable from 'react-native-gesture-handler/ReanimatedSwipeable' ;
26+
2527import { DraggableBox } from '../../basic/draggable' ;
2628import { PinchableBox } from '../../recipes/scaleAndRotate' ;
2729import { PressBox } from '../../basic/multitap' ;
@@ -174,41 +176,14 @@ class Combo extends Component<ComboProps> {
174176 < RectButton
175177 style = { styles . rectButton }
176178 onPress = { ( ) => Alert . alert ( 'First row clicked' ) } >
177- < Text style = { styles . buttonText } >
178- Swipe this row & observe highlight delay
179- </ Text >
180- { /* Info icon will cancel when you scroll in the direction of the scrollview
181- but if you move finger horizontally it would allow you to "re-enter" into
182- an active state. This is typical for most of the buttons on iOS (but not
183- on Android where the touch cancels as soon as you leave the area of the
184- button). */ }
185- < InfoButton name = "first" />
179+ < Button title = "first" />
186180 </ RectButton >
187181 </ Swipeable >
188182 < View style = { styles . buttonDelimiter } />
189183 < RectButton
190184 style = { styles . rectButton }
191185 onPress = { ( ) => Alert . alert ( 'Second row clicked' ) } >
192- < Text style = { styles . buttonText } >
193- Second info icon will block scrolling
194- </ Text >
195- { /* Info icon will block interaction with other gesture handlers including
196- the scrollview handler its a descendant of. This is typical for buttons
197- embedded in a scrollable content on iOS. */ }
198- < InfoButton disallowInterruption name = "second" />
199- </ RectButton >
200- < View style = { styles . buttonDelimiter } />
201- < RectButton
202- style = { styles . rectButton }
203- onPress = { ( ) => Alert . alert ( 'Third row clicked' ) } >
204- < Text style = { styles . buttonText } >
205- This one will cancel when you drag outside
206- </ Text >
207- { /* Info icon will cancel when you drag your finger outside of its bounds and
208- then back unlike all the previous icons that would activate when you re-enter
209- their activation area. This is a typical bahaviour for android but less frequent
210- for most of the iOS native apps. */ }
211- < InfoButton shouldCancelWhenOutside name = "third" />
186+ < Button title = "second" />
212187 </ RectButton >
213188 </ View >
214189 < LoremIpsum />
0 commit comments