ordering-ui-react-native 0.12.85 → 0.12.90

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.
@@ -3,6 +3,7 @@ import styled, { css } from 'styled-components/native'
3
3
  export const WrapHeader = styled.View`
4
4
  position: relative;
5
5
  z-index: 1;
6
+ margin-bottom: 20px;
6
7
  `
7
8
 
8
9
  export const TopHeader = styled.View`
@@ -26,11 +27,8 @@ export const ProductHeader = styled.ImageBackground`
26
27
  `
27
28
 
28
29
  export const WrapContent = styled.View`
29
- padding: 26px 40px;
30
- position: relative;
31
- bottom: 20px;
32
- background-color: white;
33
- z-index: 100;
30
+ padding: 0 40px;
31
+ background-color: #FFF;
34
32
  `
35
33
 
36
34
  export const ProductTitle = styled.View`
@@ -39,7 +37,7 @@ export const ProductTitle = styled.View`
39
37
  `
40
38
 
41
39
  export const ProductDescription = styled.View`
42
- margin-bottom: 30px;
40
+ margin-bottom: 10px;
43
41
  `
44
42
 
45
43
  export const ProductEditions = styled.View`
@@ -4,7 +4,6 @@ import { OInput, OButton } from '../shared'
4
4
  import { useLanguage } from 'ordering-components/native'
5
5
  import { useTheme } from 'styled-components/native';
6
6
  import Icon from 'react-native-vector-icons/Feather'
7
- import { useEffect } from 'hoist-non-react-statics/node_modules/@types/react';
8
7
 
9
8
  export const SearchBar = (props: any) => {
10
9
  const {
@@ -31,8 +30,6 @@ export const SearchBar = (props: any) => {
31
30
  padding: 1,
32
31
  maxHeight: 47,
33
32
  height: 47,
34
- borderBottomColor: theme.colors.border,
35
- borderBottomWidth: 1,
36
33
  },
37
34
  borderStyle: {
38
35
  borderColor: theme.colors.primary,
@@ -74,16 +71,15 @@ export const SearchBar = (props: any) => {
74
71
  }
75
72
 
76
73
  return (
77
- <View style={[styles.container, { height: height }]}>
74
+ <View style={[styles.container]}>
78
75
  <OInput
79
76
  value={searchValue}
80
77
  onChange={onChangeSearch}
81
- style={styles.inputStyle}
78
+ style={{ ...styles.inputStyle, ...inputStyle }}
82
79
  placeholder={placeholder}
83
80
  icon={theme.images.general.search}
84
81
  iconStyle={{ width: 17 }}
85
82
  returnKeyType='done'
86
- inputStyle={inputStyle}
87
83
  />
88
84
  {isCancelButtonShow && (
89
85
  <OButton
@@ -229,7 +229,7 @@ export interface BusinessInformationParams {
229
229
  export interface BusinessReviewsParams {
230
230
  businessState: { business: any, loading: boolean, error: null };
231
231
  reviewsList: { reviews: any, loading: boolean, error: null };
232
- handleChangeSearch: any;
232
+ handleChangeSearch?: any;
233
233
  }
234
234
  export interface SearchBarParams {
235
235
  searchValue?: any;