ordering-ui-react-native 0.22.41 → 0.22.42

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.22.41",
3
+ "version": "0.22.42",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -106,6 +106,8 @@ import { OSBill, OSTable, OSCoupon, OSTotal, OSRow } from './src/components/Orde
106
106
  import { FormInput, FormSide, ButtonsWrapper, LoginWith, OTab, OTabs } from './src/components/LoginForm/styles';
107
107
  import { OSItem, OSItemContent, OSItemActions } from './src/components/PaymentOptionStripe/styles';
108
108
 
109
+ import { orderTypeList } from './src/utils'
110
+
109
111
  import Alert from './src/providers/AlertProvider'
110
112
 
111
113
  import {
@@ -343,6 +345,7 @@ export {
343
345
  _setStoreData,
344
346
  _removeStoreData,
345
347
  _clearStoreData,
348
+ orderTypeList,
346
349
 
347
350
  // Date Picker
348
351
  DatePickerUI
@@ -307,7 +307,7 @@ export const UserFormDetailsUI = (props: any) => {
307
307
  (item: any) => {
308
308
  const field = item?.validation_field || item
309
309
  return (showField &&
310
- showField(field.code) && ((requiredFields && requiredFields.includes(field.code)) || !requiredFields) && (
310
+ showField(field.code) && ((requiredFields && requiredFields?.includes?.(field.code)) || !requiredFields) && (
311
311
  <React.Fragment key={field.id}>
312
312
  <Controller
313
313
  key={field.id}