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
|
@@ -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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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}
|