Skip to content

Commit 46a4c4b

Browse files
committed
remove another draft of swipeable component
1 parent ad0ff9c commit 46a4c4b

File tree

3 files changed

+5
-315
lines changed

3 files changed

+5
-315
lines changed

example/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
TouchablesIndex,
3030
TouchableExample,
3131
} from './src/release_tests/touchables';
32-
import Rows from './src/release_tests/rows';
3332
import NestedFling from './src/release_tests/nestedFling';
3433
import MouseButtons from './src/release_tests/mouseButtons';
3534
import ContextMenu from './src/release_tests/contextMenu';
@@ -178,7 +177,6 @@ const EXAMPLES: ExamplesSection[] = [
178177
},
179178
{ name: 'Double pinch & rotate', component: DoublePinchRotate },
180179
{ name: 'Double draggable', component: DoubleDraggable },
181-
{ name: 'Rows', component: Rows },
182180
{ name: 'Nested Fling', component: NestedFling },
183181
{
184182
name: 'Combo',

example/src/release_tests/combo/index.tsx

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
View,
88
Alert,
99
TouchableHighlightProps as RNTouchableHighlightProps,
10+
Button,
1011
} from 'react-native';
1112

1213
import {
@@ -21,7 +22,8 @@ import {
2122
} from 'react-native-gesture-handler';
2223
import Slider from '@react-native-community/slider';
2324

24-
import { Swipeable, InfoButton } from '../rows';
25+
import Swipeable from 'react-native-gesture-handler/ReanimatedSwipeable';
26+
2527
import { DraggableBox } from '../../basic/draggable';
2628
import { PinchableBox } from '../../recipes/scaleAndRotate';
2729
import { 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 />

example/src/release_tests/rows/index.tsx

Lines changed: 0 additions & 283 deletions
This file was deleted.

0 commit comments

Comments
 (0)