ordering-ui-react-native 0.17.58 → 0.17.59

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.58",
3
+ "version": "0.17.59",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -384,7 +384,6 @@ const LoginFormUI = (props: LoginParams) => {
384
384
  onActionLeft={() => navigation?.canGoBack() && navigation.goBack()}
385
385
  showCall={false}
386
386
  btnStyle={{ paddingLeft: 0 }}
387
- style={{ flexDirection: 'column', alignItems: 'flex-start' }}
388
387
  titleWrapStyle={{ paddingHorizontal: 0 }}
389
388
  titleStyle={{ marginRight: 0, marginLeft: 0 }}
390
389
  />
@@ -262,7 +262,7 @@ const MomentOptionUI = (props: MomentOptionParams) => {
262
262
  style={{ paddingBottom: 0 }}
263
263
  title={t('QUESTION_WHEN_ORDER', 'When do you want your order?')}
264
264
  titleAlign={'center'}
265
- titleStyle={{ fontSize: 14, marginRight: 0, marginLeft: 0 }}
265
+ titleStyle={{ fontSize: 20, marginRight: 0, marginLeft: 0 }}
266
266
  titleWrapStyle={{ paddingHorizontal: 0 }}
267
267
  />
268
268
 
@@ -91,7 +91,7 @@ const NavBar = (props: Props) => {
91
91
  }
92
92
  <TitleWrapper style={{ ...{ paddingHorizontal: props.isVertical ? 0 : 10 }, ...props.titleWrapStyle }}>
93
93
  <OText
94
- size={24}
94
+ size={20}
95
95
  lineHeight={36}
96
96
  weight={Platform.OS === 'ios' ? '600' : 'bold'}
97
97
  style={
@@ -100,7 +100,6 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
100
100
  style={{ paddingBottom: 0 }}
101
101
  title={t('HOW_WILL_YOU_DELIVERY_TYPE', 'How will your order type?')}
102
102
  titleAlign={'center'}
103
- titleStyle={{ fontSize: 14 }}
104
103
  noMargin
105
104
  />
106
105
  {
@@ -471,7 +471,6 @@ const SignupFormUI = (props: SignupParams) => {
471
471
  onActionLeft={() => navigation?.canGoBack() && navigation.goBack()}
472
472
  showCall={false}
473
473
  btnStyle={{ paddingLeft: 0 }}
474
- style={{ flexDirection: 'column', alignItems: 'flex-start' }}
475
474
  titleWrapStyle={{ paddingHorizontal: 0 }}
476
475
  titleStyle={{ marginLeft: 0, marginRight: 0 }}
477
476
  />
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect } from 'react'
2
- import { Pressable, StyleSheet, View, ScrollView, TouchableOpacity } from 'react-native';
2
+ import { Pressable, StyleSheet, View, ScrollView, TouchableOpacity, Platform } from 'react-native';
3
3
  import { useTheme } from 'styled-components/native'
4
4
  import { Fade, Placeholder, PlaceholderLine } from 'rn-placeholder';
5
5
  import FastImage from 'react-native-fast-image'
@@ -111,7 +111,14 @@ const WalletsUI = (props: any) => {
111
111
  <>
112
112
  <Container>
113
113
  <Header>
114
- <OText size={24} style={{ marginTop: 30 }}>{t('WALLETS', 'Wallets')}</OText>
114
+ <OText
115
+ size={20}
116
+ style={{
117
+ marginTop: 30,
118
+ color: theme.colors.textNormal,
119
+ }}
120
+ weight={Platform.OS === 'ios' ? '600' : 'bold'}
121
+ >{t('WALLETS', 'Wallets')}</OText>
115
122
  {isChewLayout && (
116
123
  <OButton
117
124
  text={t('WALLET_HISTORY', 'Wallet history')}
@@ -1,16 +1,21 @@
1
1
  import React from 'react';
2
2
  import { Platform } from 'react-native';
3
3
  import OText from './OText';
4
+ import { useTheme } from 'styled-components/native'
4
5
 
5
6
  const HeaderTitle = (props: any) => {
6
7
  const { text, style } = props
8
+ const theme = useTheme();
9
+
7
10
  return (
8
11
  <OText
9
- size={24}
12
+ size={20}
13
+ weight={Platform.OS === 'ios' ? '600' : 'bold'}
10
14
  style={style ?? {
11
15
  marginTop: Platform.OS === 'android' ? 50 : 30,
12
16
  paddingHorizontal: 40,
13
- textTransform: 'capitalize'
17
+ textTransform: 'capitalize',
18
+ color: props.titleColor || theme.colors.textNormal,
14
19
  }}
15
20
  >
16
21
  {text}