ordering-ui-react-native 0.22.69 → 0.22.71
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
|
@@ -394,7 +394,7 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
394
394
|
|
|
395
395
|
useEffect(() => {
|
|
396
396
|
const unsubcribe = navigation.addListener('focus', () => {
|
|
397
|
-
currentTabSelected === 'logisticOrders' && loadLogisticOrders()
|
|
397
|
+
currentTabSelected === 'logisticOrders' && loadLogisticOrders && loadLogisticOrders()
|
|
398
398
|
})
|
|
399
399
|
return unsubcribe
|
|
400
400
|
}, [navigation, loadLogisticOrders])
|
|
@@ -457,13 +457,15 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
457
457
|
<View style={{ marginRight: 10 }}>
|
|
458
458
|
<WebsocketStatus />
|
|
459
459
|
</View>
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
460
|
+
{isNetConnected && (
|
|
461
|
+
<FeatherIcon
|
|
462
|
+
name='refresh-cw'
|
|
463
|
+
color={theme.colors.backgroundDark}
|
|
464
|
+
size={24}
|
|
465
|
+
onPress={() => { currentTabSelected === 'logisticOrders' ? loadLogisticOrders && loadLogisticOrders() : loadOrders && loadOrders({ newFetch: true }) }}
|
|
466
|
+
style={{ marginRight: 20 }}
|
|
467
|
+
/>
|
|
468
|
+
)}
|
|
467
469
|
<FontistoIcon
|
|
468
470
|
name='search'
|
|
469
471
|
color={theme.colors.backgroundDark}
|
|
@@ -617,7 +619,7 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
617
619
|
refreshControl={
|
|
618
620
|
<RefreshControl
|
|
619
621
|
refreshing={refreshing}
|
|
620
|
-
onRefresh={() => { isNetConnected && (currentTabSelected === 'logisticOrders' ? loadLogisticOrders() : loadOrders && loadOrders({ newFetch: true })) }}
|
|
622
|
+
onRefresh={() => { isNetConnected && (currentTabSelected === 'logisticOrders' ? loadLogisticOrders && loadLogisticOrders() : loadOrders && loadOrders({ newFetch: true })) }}
|
|
621
623
|
/>
|
|
622
624
|
}
|
|
623
625
|
>
|
|
@@ -1161,3 +1163,7 @@ export const OrdersOption = (props: OrdersOptionParams) => {
|
|
|
1161
1163
|
)}
|
|
1162
1164
|
</>);
|
|
1163
1165
|
};
|
|
1166
|
+
|
|
1167
|
+
OrdersOption.defaultProps = {
|
|
1168
|
+
isNetConnected: true
|
|
1169
|
+
}
|
|
@@ -356,9 +356,6 @@ const AddressFormUI = (props: AddressFormParams) => {
|
|
|
356
356
|
map_data: { library: 'google', place_id: data.place_id },
|
|
357
357
|
zip_code: data?.zip_code || null,
|
|
358
358
|
};
|
|
359
|
-
if (googleInput?.current) {
|
|
360
|
-
googleInput?.current?.setAddressText(addressSelected.address);
|
|
361
|
-
}
|
|
362
359
|
updateChanges(addressSelected);
|
|
363
360
|
};
|
|
364
361
|
|
|
@@ -195,8 +195,8 @@ export const GoogleMap = (props: GoogleMapsParams) => {
|
|
|
195
195
|
const regionConfig = {
|
|
196
196
|
latitude: location?.lat,
|
|
197
197
|
longitude: location?.lng,
|
|
198
|
-
latitudeDelta: delta ?? 0.0010,
|
|
199
|
-
longitudeDelta: (delta ?? 0.0010) * ASPECT_RATIO
|
|
198
|
+
latitudeDelta: region?.latitudeDelta ?? delta ?? 0.0010,
|
|
199
|
+
longitudeDelta: region?.longitudeDelta ?? (delta ?? 0.0010) * ASPECT_RATIO
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
mapRef.current.animateToRegion(autoCompleteAddress
|
|
@@ -641,6 +641,8 @@ export interface GoogleMapsParams {
|
|
|
641
641
|
setAutoCompleteAddress?: (val: boolean) => void,
|
|
642
642
|
autoCompleteAddress?: boolean,
|
|
643
643
|
manualZoom?: boolean
|
|
644
|
+
autoCompleteAddress?: boolean,
|
|
645
|
+
setAutoCompleteAddress?: (val: boolean) => void,
|
|
644
646
|
}
|
|
645
647
|
|
|
646
648
|
export interface HelpParams {
|