@@ -49,37 +49,38 @@ export default function KeyboardExtendExample() {
49
49
style = { { ...StyleSheet . absoluteFillObject , flex : 1 , width : "100%" } }
50
50
/>
51
51
< TouchableWithoutFeedback onPress = { ( ) => Keyboard . dismiss ( ) } >
52
- < SafeAreaView style = { styles . container } edges = { [ "top" ] } >
53
- < TextInput
54
- placeholder = "Donation amount"
55
- placeholderTextColor = "#5c5c5c"
56
- keyboardType = "numeric"
57
- style = { styles . input }
58
- />
52
+ < SafeAreaView edges = { [ "top" ] } style = { styles . container } >
53
+ < TextInput
54
+ keyboardType = "numeric"
55
+ placeholder = "Donation amount"
56
+ placeholderTextColor = "#5c5c5c"
57
+ style = { styles . input }
58
+ testID = "donation_amount"
59
+ />
59
60
60
- < KeyboardExtender enabled = { showExtend } >
61
- < Reanimated . View style = { [ styles . keyboardExtend , animatedStyle ] } >
62
- < TouchableOpacity onPress = { ( ) => Alert . alert ( "10$" ) } >
63
- < Text style = { styles . priceText } > 10$</ Text >
64
- </ TouchableOpacity >
65
- < TouchableOpacity onPress = { ( ) => Alert . alert ( "20$" ) } >
66
- < Text style = { styles . priceText } > 20$</ Text >
67
- </ TouchableOpacity >
68
- < TouchableOpacity onPress = { ( ) => Alert . alert ( "50$" ) } >
69
- < Text style = { styles . priceText } > 50$</ Text >
70
- </ TouchableOpacity >
71
- </ Reanimated . View >
72
- </ KeyboardExtender >
73
- < OverKeyboardView visible = { isOKVMode } >
74
- < View style = { { flex : 1 , justifyContent : "flex-end" } } >
75
- { /* TODO replace hardcoded value */ }
76
- < TextInput
77
- placeholder = "Search..."
78
- style = { [ styles . input , { marginBottom : height - 61.73 } ] }
79
- />
80
- </ View >
81
- </ OverKeyboardView >
82
- </ SafeAreaView >
61
+ < KeyboardExtender enabled = { showExtend } >
62
+ < Reanimated . View style = { [ styles . keyboardExtend , animatedStyle ] } >
63
+ < TouchableOpacity onPress = { ( ) => Alert . alert ( "10$" ) } >
64
+ < Text style = { styles . priceText } > 10$</ Text >
65
+ </ TouchableOpacity >
66
+ < TouchableOpacity onPress = { ( ) => Alert . alert ( "20$" ) } >
67
+ < Text style = { styles . priceText } > 20$</ Text >
68
+ </ TouchableOpacity >
69
+ < TouchableOpacity onPress = { ( ) => Alert . alert ( "50$" ) } >
70
+ < Text style = { styles . priceText } > 50$</ Text >
71
+ </ TouchableOpacity >
72
+ </ Reanimated . View >
73
+ </ KeyboardExtender >
74
+ < OverKeyboardView visible = { isOKVMode } >
75
+ < View style = { { flex : 1 , justifyContent : "flex-end" } } >
76
+ { /* TODO replace hardcoded value */ }
77
+ < TextInput
78
+ placeholder = "Search..."
79
+ style = { [ styles . input , { marginBottom : height - 61.73 } ] }
80
+ />
81
+ </ View >
82
+ </ OverKeyboardView >
83
+ </ SafeAreaView >
83
84
</ TouchableWithoutFeedback >
84
85
</ >
85
86
) ;
0 commit comments