ordering-ui-react-native 0.18.38 → 0.18.39

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.
Files changed (24) hide show
  1. package/package.json +1 -1
  2. package/themes/original/src/components/AddressForm/index.tsx +7 -4
  3. package/themes/original/src/components/AddressList/index.tsx +1 -1
  4. package/themes/original/src/components/BusinessController/index.tsx +3 -3
  5. package/themes/original/src/components/BusinessListingSearch/index.tsx +330 -276
  6. package/themes/original/src/components/BusinessProductsList/index.tsx +3 -3
  7. package/themes/original/src/components/BusinessProductsListing/index.tsx +35 -8
  8. package/themes/original/src/components/Checkout/index.tsx +6 -5
  9. package/themes/original/src/components/GoogleMap/index.tsx +11 -2
  10. package/themes/original/src/components/LoginForm/index.tsx +15 -14
  11. package/themes/original/src/components/MyOrders/index.tsx +14 -1
  12. package/themes/original/src/components/NavBar/index.tsx +9 -4
  13. package/themes/original/src/components/OrdersOption/index.tsx +3 -1
  14. package/themes/original/src/components/ProductForm/index.tsx +3 -4
  15. package/themes/original/src/components/ProductOptionSubOption/index.tsx +7 -5
  16. package/themes/original/src/components/ProductOptionSubOption/styles.tsx +2 -2
  17. package/themes/original/src/components/SignupForm/index.tsx +14 -14
  18. package/themes/original/src/components/StripeElementsForm/index.tsx +17 -16
  19. package/themes/original/src/components/UserFormDetails/index.tsx +34 -5
  20. package/themes/original/src/components/UserProfile/index.tsx +2 -20
  21. package/themes/original/src/components/UserProfileForm/index.tsx +2 -1
  22. package/themes/original/src/components/Wallets/index.tsx +1 -1
  23. package/themes/original/src/types/index.tsx +2 -2
  24. package/themes/original/src/utils/index.tsx +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.18.38",
3
+ "version": "0.18.39",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -122,8 +122,8 @@ const AddressFormUI = (props: AddressFormParams) => {
122
122
  width: 16
123
123
  },
124
124
  wrapperNavbar: Platform.OS === 'ios'
125
- ? { paddingVertical: 0, paddingHorizontal: 40 }
126
- : { paddingVertical: 20, paddingHorizontal: 40 }
125
+ ? { paddingVertical: 0, paddingLeft: 40, paddingRight: 20 }
126
+ : { paddingVertical: 20, paddingLeft: 40, paddingRight: 20 }
127
127
  });
128
128
 
129
129
  const [, t] = useLanguage();
@@ -352,6 +352,9 @@ const AddressFormUI = (props: AddressFormParams) => {
352
352
  map_data: { library: 'google', place_id: data.place_id },
353
353
  zip_code: data?.zip_code || null,
354
354
  };
355
+ if (googleInput?.current) {
356
+ googleInput?.current?.setAddressText(addressSelected.address);
357
+ }
355
358
  updateChanges(addressSelected);
356
359
  };
357
360
 
@@ -526,8 +529,8 @@ const AddressFormUI = (props: AddressFormParams) => {
526
529
  onActionLeft={goToBack}
527
530
  showCall={false}
528
531
  btnStyle={{ paddingLeft: 0 }}
529
- style={{ marginTop: Platform.OS === 'ios' ? 0 : 30 }}
530
- titleWrapStyle={{ paddingHorizontal: 0 }}
532
+ style={{ marginTop: Platform.OS === 'ios' ? 0 : 10 }}
533
+ titleWrapStyle={{ paddingHorizontal: 0, width: '100%' }}
531
534
  titleStyle={{ marginRight: 0, marginLeft: 0 }}
532
535
  />
533
536
  </View>
@@ -346,7 +346,7 @@ const styles = StyleSheet.create({
346
346
  },
347
347
  button: {
348
348
  marginTop: 30,
349
- marginBottom: 0,
349
+ marginBottom: 30,
350
350
  borderRadius: 7.6,
351
351
  borderWidth: 1,
352
352
  shadowOpacity: 0,
@@ -11,10 +11,10 @@ import {
11
11
  ToastType
12
12
  } from 'ordering-components/native';
13
13
  import { OIcon, OText } from '../shared';
14
- import { Dimensions, StyleSheet, Vibration, View } from 'react-native';
14
+ import { Dimensions, StyleSheet, View } from 'react-native';
15
15
  import { InView } from 'react-native-intersection-observer'
16
16
  import { BusinessControllerParams } from '../../types';
17
- import { convertHoursToMinutes, lightenDarkenColor, shape } from '../../utils';
17
+ import { convertHoursToMinutes, lightenDarkenColor, shape, vibrateApp } from '../../utils';
18
18
 
19
19
  import {
20
20
  BusinessHero,
@@ -152,7 +152,7 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
152
152
  };
153
153
 
154
154
  const handleBusinessClick = (selectedBusiness: any) => {
155
- Vibration.vibrate()
155
+ vibrateApp()
156
156
  if (business?.open) handleClick && handleClick(selectedBusiness)
157
157
  else {
158
158
  if (configState?.configs?.preorder_status_enabled?.value === '1') {