ordering-ui-react-native 0.18.15 → 0.18.17

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.18.15",
3
+ "version": "0.18.17",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -476,6 +476,8 @@ const LoginFormUI = (props: LoginParams) => {
476
476
  borderRadius: 7.6,
477
477
  borderColor: theme.colors.inputSignup,
478
478
  backgroundColor: theme.colors.transparent,
479
+ minHeight: 50,
480
+ maxHeight : 50
479
481
  },
480
482
  btn: {
481
483
  borderRadius: 7.6,
@@ -941,3 +943,4 @@ export const LoginForm = (props: any) => {
941
943
 
942
944
  return <LoginFormController {...loginProps} />;
943
945
  };
946
+
@@ -292,6 +292,7 @@ const PaymentOptionsUI = (props: any) => {
292
292
  onSelectCard={handlePaymethodDataChange}
293
293
  onNavigationRedirect={onNavigationRedirect}
294
294
  onCancel={() => handlePaymethodClick(null)}
295
+ setAddCardOpen={() => setAddCardOpen({ ...addCardOpen, stripe: true })}
295
296
  />
296
297
  </View>
297
298
  )}
@@ -113,7 +113,7 @@ export const PhoneInputNumber = (props: PhoneInputParams) => {
113
113
  !isNaN(defaultCode)
114
114
  ? transformCountryCode(defaultCode)
115
115
  : defaultCode
116
- : configs?.default_country_code?.value}
116
+ : configs?.default_country_code?.value?.toUpperCase()}
117
117
  onChangeFormattedText={(text: string) => handleChangeNumber(text)}
118
118
  withDarkTheme
119
119
  onChangeCountry={(country) => changeCountry?.(country)}
@@ -591,7 +591,7 @@ const SignupFormUI = (props: SignupParams) => {
591
591
  control={control}
592
592
  render={({ onChange, value }: any) => (
593
593
  <OInput
594
- placeholder={t(field.name)}
594
+ placeholder={t(field.name?.replace(/\s/g, '_')?.toUpperCase(), field.name)}
595
595
  style={style.inputStyle}
596
596
  icon={
597
597
  field.code === 'email'
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useEffect } from 'react';
2
2
  import { View, StyleSheet, ScrollView } from 'react-native';
3
3
  import {
4
4
  PaymentOptionStripe,
@@ -25,6 +25,7 @@ const StripeCardsListUI = (props: any) => {
25
25
  cardSelected,
26
26
  cardsList,
27
27
  handleCardClick,
28
+ setAddCardOpen
28
29
  } = props;
29
30
 
30
31
  const theme = useTheme();
@@ -37,6 +38,12 @@ const StripeCardsListUI = (props: any) => {
37
38
  onSelectCard(card);
38
39
  }
39
40
 
41
+ useEffect(() => {
42
+ if (!cardsList?.loading && cardsList?.cards?.length === 0) {
43
+ setAddCardOpen(true)
44
+ }
45
+ }, [cardsList?.loading])
46
+
40
47
  return (
41
48
  <>
42
49
  {token && !cardsList.loading && cardsList.cards && cardsList.cards.length === 0 && (