ordering-ui-react-native 0.17.62-release → 0.17.63-release

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.17.62-release",
3
+ "version": "0.17.63-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -576,15 +576,14 @@ export const OrderContentComponent = (props: OrderContent) => {
576
576
  </Table>
577
577
  ))
578
578
  }
579
- {order?.summary?.driver_tip > 0 && (
579
+ {(order?.summary?.driver_tip > 0 || order?.driver_tip > 0) && (
580
580
  <Table>
581
581
  <OText mBottom={4}>
582
582
  {t('DRIVER_TIP', 'Driver tip')}
583
- {order?.summary?.driver_tip > 0 &&
584
- parseInt(configs?.driver_tip_type?.value, 10) === 2 &&
583
+ {order?.driver_tip > 0 && parseInt(configs?.driver_tip_type?.value, 10) === 2 &&
585
584
  !parseInt(configs?.driver_tip_use_custom?.value, 10) &&
586
585
  (
587
- `(${verifyDecimals(order?.summary?.driver_tip, parseNumber)}%)`
586
+ `(${verifyDecimals(order?.driver_tip, parseNumber)}%)`
588
587
  )}
589
588
  </OText>
590
589
  <OText mBottom={4}>{parsePrice(order?.summary?.driver_tip ?? order?.totalDriverTip, { currency: order?.currency })}</OText>
@@ -375,7 +375,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
375
375
  )}
376
376
  <View style={{
377
377
  height: !isPreOrderSetting && isChewLayout ? 150 : isChewLayout ? 200 : isFarAway ? 150 : 100,
378
- marginTop: Platform.OS == 'ios' ? 0 : 50,
378
+ marginTop: isChewLayout ? 0 : Platform.OS == 'ios' ? 0 : 50,
379
379
  backgroundColor: isChewLayout ? theme?.colors?.chew : theme.colors?.white
380
380
  }}
381
381
  >
@@ -613,7 +613,7 @@ export const ProductOptionsUI = (props: any) => {
613
613
  >
614
614
  {(String(img).includes('http') || typeof img === 'number') ? (
615
615
  <FastImage
616
- style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio: 4 / 3 }}
616
+ style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio: 16 / 9 }}
617
617
  source={typeof img !== 'number' ? {
618
618
  uri: optimizeImage(img, 'h_1024,c_limit'),
619
619
  priority: FastImage.priority.normal,