ordering-ui-react-native 0.13.4 → 0.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -239,9 +239,9 @@ const CartUI = (props: any) => {
|
|
|
239
239
|
</OSTotal>
|
|
240
240
|
{cart?.status !== 2 && (
|
|
241
241
|
<OSTable>
|
|
242
|
-
<View style={{
|
|
242
|
+
<View style={{ flex: 1, marginTop: 20, paddingBottom: 20 }}>
|
|
243
243
|
<OText>{t('COMMENTS', 'Comments')}</OText>
|
|
244
|
-
<View style={{ flex: 1
|
|
244
|
+
<View style={{ flex: 1 }}>
|
|
245
245
|
<OInput
|
|
246
246
|
value={cart?.comment}
|
|
247
247
|
placeholder={t('SPECIAL_COMMENTS', 'Special Comments')}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Modal, TouchableWithoutFeedback, Dimensions, StyleSheet, View, ScrollView, Text } from 'react-native'
|
|
2
|
+
import { Modal, TouchableWithoutFeedback, Dimensions, StyleSheet, View, ScrollView, Text, Platform } from 'react-native'
|
|
3
3
|
import { OText } from '../shared'
|
|
4
4
|
import Icon from 'react-native-vector-icons/Feather'
|
|
5
|
-
import { useTheme } from 'styled-components/native'
|
|
5
|
+
import styled,{ useTheme } from 'styled-components/native'
|
|
6
6
|
|
|
7
7
|
const deviceHeight = Dimensions.get('window').height
|
|
8
8
|
|
|
@@ -24,6 +24,11 @@ const OBottomPopup = (props: Props) => {
|
|
|
24
24
|
|
|
25
25
|
const theme = useTheme()
|
|
26
26
|
|
|
27
|
+
const KeyboardView = styled.KeyboardAvoidingView`
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
flex-shrink: 1;
|
|
30
|
+
`;
|
|
31
|
+
|
|
27
32
|
const styles = StyleSheet.create({
|
|
28
33
|
container: {
|
|
29
34
|
flex: 1,
|
|
@@ -79,26 +84,31 @@ const OBottomPopup = (props: Props) => {
|
|
|
79
84
|
<View style={styles.touchableOutsideStyle} />
|
|
80
85
|
</TouchableWithoutFeedback>
|
|
81
86
|
<View style={styles.bottomContainer}>
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
<KeyboardView
|
|
88
|
+
enabled
|
|
89
|
+
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
|
|
90
|
+
>
|
|
91
|
+
<ScrollView showsVerticalScrollIndicator={false} >
|
|
92
|
+
{customHeaderShow ? (
|
|
93
|
+
<View style={styles.customHeaderStyle}>
|
|
94
|
+
<OText size={16} numberOfLines={1} style={styles.customTitleStyle}>
|
|
95
|
+
{title}
|
|
96
|
+
</OText>
|
|
97
|
+
<Icon
|
|
98
|
+
name='x'
|
|
99
|
+
size={30}
|
|
100
|
+
style={styles.closeBtnStyle}
|
|
101
|
+
onPress={onClose}
|
|
102
|
+
/>
|
|
103
|
+
</View>
|
|
104
|
+
) : (
|
|
105
|
+
<Text style={styles.titleStyle}>
|
|
86
106
|
{title}
|
|
87
|
-
</
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
onPress={onClose}
|
|
93
|
-
/>
|
|
94
|
-
</View>
|
|
95
|
-
) : (
|
|
96
|
-
<Text style={styles.titleStyle}>
|
|
97
|
-
{title}
|
|
98
|
-
</Text>
|
|
99
|
-
)}
|
|
100
|
-
{children}
|
|
101
|
-
</ScrollView>
|
|
107
|
+
</Text>
|
|
108
|
+
)}
|
|
109
|
+
{children}
|
|
110
|
+
</ScrollView>
|
|
111
|
+
</KeyboardView>
|
|
102
112
|
</View>
|
|
103
113
|
</View>
|
|
104
114
|
</Modal>
|