ordering-ui-react-native 0.16.1-release → 0.16.2-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.16.1-release",
3
+ "version": "0.16.2-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -97,7 +97,8 @@ export const ProfessionalFilter = (props: ProfessionalFilterParams) => {
97
97
  />
98
98
  ) : (
99
99
  <OIcon
100
- src={theme?.images?.dummies?.product}
100
+ src={theme?.images?.general?.user}
101
+ cover={false}
101
102
  style={styles.photoStyle}
102
103
  />
103
104
  )}
@@ -6,7 +6,7 @@ import CalendarPicker from 'react-native-calendar-picker'
6
6
  import FeatherIcon from 'react-native-vector-icons/Feather';
7
7
  import moment from 'moment'
8
8
  import SelectDropdown from 'react-native-select-dropdown'
9
- import { OButton, OText } from '../shared'
9
+ import { OButton, OText, OIcon } from '../shared'
10
10
  import IconAntDesign from 'react-native-vector-icons/AntDesign'
11
11
  import { useSafeAreaInsets } from 'react-native-safe-area-context'
12
12
  import { ProfessionalProfileParams } from '../../types'
@@ -58,6 +58,9 @@ export const ProfessionalProfile = (props: ProfessionalProfileParams) => {
58
58
  height: 40,
59
59
  marginBottom: 30
60
60
  },
61
+ photoStyle: {
62
+ alignSelf: 'center'
63
+ }
61
64
  })
62
65
 
63
66
  const onDateChange = (date: any) => {
@@ -151,13 +154,21 @@ export const ProfessionalProfile = (props: ProfessionalProfileParams) => {
151
154
 
152
155
  return (
153
156
  <Container>
154
- <ProfessionalPhoto
155
- source={{
156
- uri:
157
- professional?.photo ||
158
- optimizeImage(theme.images.general.user, 'h_250,c_limit'),
159
- }}
160
- />
157
+ {!!professional?.photo ? (
158
+ <ProfessionalPhoto
159
+ source={{
160
+ uri: professional?.photo
161
+ }}
162
+ />
163
+ ) : (
164
+ <OIcon
165
+ src={theme.images.general.user}
166
+ style={styles.photoStyle}
167
+ cover={false}
168
+ width={200}
169
+ height={200}
170
+ />
171
+ )}
161
172
  <InfoWrapper>
162
173
  <OText
163
174
  size={20}