ordering-ui-react-native 0.18.99 → 0.19.0-testing
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 +1 -1
- package/themes/business/src/components/LoginForm/index.tsx +2 -2
- package/themes/business/src/components/NewOrderNotification/index.tsx +3 -2
- package/themes/business/src/components/ReviewCustomer/index.tsx +1 -1
- package/themes/business/src/components/StoresList/index.tsx +1 -2
package/package.json
CHANGED
|
@@ -209,11 +209,11 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
209
209
|
props.handleChangeTab(val);
|
|
210
210
|
|
|
211
211
|
if (loginTab === 'email') {
|
|
212
|
-
scrollRefTab.current?.scrollToEnd({ animated: true });
|
|
212
|
+
scrollRefTab?.current?.scrollToEnd && scrollRefTab.current?.scrollToEnd({ animated: true });
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
if (loginTab === 'cellphone') {
|
|
216
|
-
scrollRefTab.current?.scrollTo({ animated: true });
|
|
216
|
+
scrollRefTab?.current?.scrollTo && scrollRefTab.current?.scrollTo({ animated: true });
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
|
|
@@ -45,7 +45,7 @@ const NewOrderNotificationUI = (props: any) => {
|
|
|
45
45
|
},
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const notificationSound = new Sound(
|
|
48
|
+
const notificationSound = new Sound('https://cdn.freesound.org/previews/81/81205_1274366-lq.mp3', '', () => {});
|
|
49
49
|
|
|
50
50
|
let _timeout: any = null
|
|
51
51
|
let times = 0
|
|
@@ -118,6 +118,7 @@ const NewOrderNotificationUI = (props: any) => {
|
|
|
118
118
|
}, [])
|
|
119
119
|
|
|
120
120
|
useEffect(() => {
|
|
121
|
+
handlePlayNotificationSound()
|
|
121
122
|
return () => handleCloseEvents()
|
|
122
123
|
}, [])
|
|
123
124
|
|
|
@@ -126,7 +127,7 @@ const NewOrderNotificationUI = (props: any) => {
|
|
|
126
127
|
<Modal
|
|
127
128
|
animationType='slide'
|
|
128
129
|
transparent={true}
|
|
129
|
-
visible={!!currentEvent?.orderId}
|
|
130
|
+
visible={true ?? !!currentEvent?.orderId}
|
|
130
131
|
>
|
|
131
132
|
<NotificationContainer>
|
|
132
133
|
<View style={styles.modalView}>
|
|
@@ -159,7 +159,7 @@ const ReviewCustomerUI = (props: ReviewCustomerParams) => {
|
|
|
159
159
|
useEffect(() => {
|
|
160
160
|
if (scrollref?.current) {
|
|
161
161
|
Keyboard.addListener('keyboardDidShow', () => {
|
|
162
|
-
scrollref?.current && scrollref.current.scrollToEnd()
|
|
162
|
+
scrollref?.current?.scrollToEnd && scrollref.current.scrollToEnd()
|
|
163
163
|
})
|
|
164
164
|
}
|
|
165
165
|
}, [scrollref?.current])
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View, StyleSheet, Dimensions, Linking } from 'react-native';
|
|
3
|
-
import { ScrollView, TouchableOpacity } from 'react-native-gesture-handler';
|
|
2
|
+
import { View, StyleSheet, Dimensions, Linking, ScrollView, TouchableOpacity } from 'react-native';
|
|
4
3
|
import { Placeholder, PlaceholderLine, Fade } from 'rn-placeholder';
|
|
5
4
|
import NetInfo from '@react-native-community/netinfo';
|
|
6
5
|
import { useTheme } from 'styled-components/native';
|