|
1 |
| -import { View, ScrollView as RNScrollView } from 'react-native'; |
| 1 | +import { |
| 2 | + TouchableHighlight, |
| 3 | + TouchableNativeFeedback, |
| 4 | + TouchableOpacity, |
| 5 | + TouchableWithoutFeedback, |
| 6 | + ScrollView, |
| 7 | + FlatList, |
| 8 | + Switch, |
| 9 | + TextInput, |
| 10 | + DrawerLayoutAndroid, |
| 11 | + View, |
| 12 | +} from 'react-native'; |
2 | 13 | import { State } from './State';
|
3 | 14 | import { Directions } from './Directions';
|
4 | 15 |
|
5 | 16 | const NOOP = () => {
|
6 | 17 | // do nothing
|
7 | 18 | };
|
8 |
| -const ScrollView = RNScrollView; |
9 | 19 | const PanGestureHandler = View;
|
10 | 20 | const attachGestureHandler = NOOP;
|
11 | 21 | const createGestureHandler = NOOP;
|
12 | 22 | const dropGestureHandler = NOOP;
|
13 | 23 | const updateGestureHandler = NOOP;
|
| 24 | +const NativeViewGestureHandler = View; |
| 25 | +const TapGestureHandler = View; |
| 26 | +const ForceTouchGestureHandler = View; |
| 27 | +const LongPressGestureHandler = View; |
| 28 | +const PinchGestureHandler = View; |
| 29 | +const RotationGestureHandler = View; |
| 30 | +const FlingGestureHandler = View; |
| 31 | +const RawButton = TouchableNativeFeedback; |
| 32 | +const BaseButton = TouchableNativeFeedback; |
| 33 | +const RectButton = TouchableNativeFeedback; |
| 34 | +const BorderlessButton = TouchableNativeFeedback; |
14 | 35 |
|
15 | 36 | export default {
|
| 37 | + TouchableHighlight, |
| 38 | + TouchableNativeFeedback, |
| 39 | + TouchableOpacity, |
| 40 | + TouchableWithoutFeedback, |
16 | 41 | ScrollView,
|
| 42 | + FlatList, |
| 43 | + Switch, |
| 44 | + TextInput, |
| 45 | + DrawerLayoutAndroid, |
| 46 | + NativeViewGestureHandler, |
| 47 | + TapGestureHandler, |
| 48 | + ForceTouchGestureHandler, |
| 49 | + LongPressGestureHandler, |
| 50 | + PinchGestureHandler, |
| 51 | + RotationGestureHandler, |
| 52 | + FlingGestureHandler, |
| 53 | + RawButton, |
| 54 | + BaseButton, |
| 55 | + RectButton, |
| 56 | + BorderlessButton, |
17 | 57 | PanGestureHandler,
|
18 | 58 | attachGestureHandler,
|
19 | 59 | createGestureHandler,
|
|
0 commit comments