-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathtestingBase.tsx
More file actions
44 lines (40 loc) · 977 Bytes
/
testingBase.tsx
File metadata and controls
44 lines (40 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from 'react';
import {
StyleSheet,
Text,
View,
Pressable as RNPressable,
PressableProps as RNPressableProps,
} from 'react-native';
import {
LegacyPressable as GHPressable,
LegacyPressableProps as GHPressableProps,
} from 'react-native-gesture-handler';
const TestingBase = (props: GHPressableProps & RNPressableProps) => (
<>
<GHPressable {...props}>
<View style={styles.textWrapper}>
<Text style={styles.text}>RNGH pressable!</Text>
</View>
</GHPressable>
<RNPressable {...props}>
<View style={styles.textWrapper}>
<Text style={styles.text}>RN pressable!</Text>
</View>
</RNPressable>
</>
);
const BACKGROUND_COLOR = '#F5FCFF';
export default TestingBase;
export { BACKGROUND_COLOR };
const styles = StyleSheet.create({
textWrapper: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
text: {
color: BACKGROUND_COLOR,
textAlign: 'center',
},
});