7
7
View ,
8
8
Alert ,
9
9
TouchableHighlightProps as RNTouchableHighlightProps ,
10
+ Button ,
10
11
} from 'react-native' ;
11
12
12
13
import {
@@ -21,7 +22,8 @@ import {
21
22
} from 'react-native-gesture-handler' ;
22
23
import Slider from '@react-native-community/slider' ;
23
24
24
- import { Swipeable , InfoButton } from '../rows' ;
25
+ import Swipeable from 'react-native-gesture-handler/ReanimatedSwipeable' ;
26
+
25
27
import { DraggableBox } from '../../basic/draggable' ;
26
28
import { PinchableBox } from '../../recipes/scaleAndRotate' ;
27
29
import { PressBox } from '../../basic/multitap' ;
@@ -174,41 +176,14 @@ class Combo extends Component<ComboProps> {
174
176
< RectButton
175
177
style = { styles . rectButton }
176
178
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" />
186
180
</ RectButton >
187
181
</ Swipeable >
188
182
< View style = { styles . buttonDelimiter } />
189
183
< RectButton
190
184
style = { styles . rectButton }
191
185
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" />
212
187
</ RectButton >
213
188
</ View >
214
189
< LoremIpsum />
0 commit comments