@boneframework/native-components 1.0.0 → 1.0.4

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.
Files changed (43) hide show
  1. package/Bone.ts +6 -0
  2. package/Components.ts +1 -0
  3. package/Contexts.ts +1 -0
  4. package/Hooks.ts +3 -0
  5. package/README.md +10 -1
  6. package/Screens.ts +4 -0
  7. package/Utilities.ts +1 -0
  8. package/api/client.js +29 -0
  9. package/api/expoPushTokens.js +7 -0
  10. package/api/notifications.js +9 -0
  11. package/api/ping.js +9 -0
  12. package/api/users.js +35 -0
  13. package/components/ActivityIndicator.js +48 -0
  14. package/components/Animation.js +21 -0
  15. package/components/ApiInterceptor.js +104 -0
  16. package/components/Button.js +40 -0
  17. package/components/Card.js +56 -0
  18. package/components/CategoryPickerItem.js +31 -0
  19. package/components/DateTimePicker.js +12 -0
  20. package/components/Icon.js +28 -0
  21. package/components/Image.js +61 -0
  22. package/components/ImageInput.tsx +97 -0
  23. package/components/ImageInputList.tsx +34 -0
  24. package/components/ListItemDeleteAction.tsx +30 -0
  25. package/components/ListItemFlipswitch.tsx +60 -0
  26. package/components/ListItemSeparator.tsx +23 -0
  27. package/components/ListItemSwipable.tsx +64 -0
  28. package/components/OfflineNotice.tsx +36 -0
  29. package/components/Picker.tsx +87 -0
  30. package/components/PickerItem.tsx +20 -0
  31. package/components/PickerItemComponent.tsx +14 -0
  32. package/components/RoundIconButton.tsx +36 -0
  33. package/components/Screen.tsx +26 -0
  34. package/components/SessionProvider.tsx +31 -0
  35. package/components/Text.tsx +15 -0
  36. package/components/TextInput.tsx +39 -0
  37. package/contexts/auth.js +5 -0
  38. package/hooks/useApi.js +20 -0
  39. package/hooks/useAuth.js +37 -0
  40. package/package.json +14 -3
  41. package/screens/RegisterScreen.tsx +87 -0
  42. package/screens/WelcomeScreen.tsx +50 -0
  43. package/utilities/authStorage.js +80 -0
package/Bone.ts ADDED
@@ -0,0 +1,6 @@
1
+ import Components from "./Components";
2
+ import Hooks from "./Hooks";
3
+ import Screens from "./Screens";
4
+ import Utilities from "./Utilities";
5
+
6
+ export default {Components, Hooks, Screens, Utilities}
package/Components.ts ADDED
@@ -0,0 +1 @@
1
+ export default {}
package/Contexts.ts ADDED
@@ -0,0 +1 @@
1
+ export default {}
package/Hooks.ts ADDED
@@ -0,0 +1,3 @@
1
+ import useAuth from './hooks/useAuth';
2
+
3
+ export default { useAuth }
package/README.md CHANGED
@@ -1,4 +1,13 @@
1
1
  # @boneframework/native-components
2
- React Native expo components for BoneFramework
2
+ React Native expo components for BoneFramework WIP
3
+ ## project level files referred to in code
4
+ ```
5
+ @/config/settings
6
+ @/config/cache
7
+ ```
8
+ ## install these at root level:
9
+ ```
10
+ expo-auth-session
11
+ ```
3
12
 
4
13
 
package/Screens.ts ADDED
@@ -0,0 +1,4 @@
1
+ import RegisterScreen from './screens/RegisterScreen'
2
+ import WelcomeScreen from './screens/WelcomeScreen'
3
+
4
+ export default { RegisterScreen, WelcomeScreen }
package/Utilities.ts ADDED
@@ -0,0 +1 @@
1
+ export default {}
package/api/client.js ADDED
@@ -0,0 +1,29 @@
1
+ import {create} from 'apisauce';
2
+
3
+ import cache from '../utilities/cache';
4
+ import settings from '@/config/settings';
5
+ import cacheSettings from '@/config/cache';
6
+
7
+ const apiClient = create({
8
+ baseURL: settings.apiUrl
9
+ });
10
+
11
+ const get = apiClient.get;
12
+
13
+ apiClient.get = async (url, params, axiosConfig) => {
14
+ const response = await get(url, params, axiosConfig);
15
+
16
+ if (response.ok) {
17
+ if (cacheSettings.blacklist.includes(url) === false) {
18
+ cache.store(url, response.data);
19
+ }
20
+
21
+ return response;
22
+ }
23
+
24
+ const data = await cache.get(url);
25
+
26
+ return data ? {ok: true, data: data} : response;
27
+ }
28
+
29
+ export default apiClient;
@@ -0,0 +1,7 @@
1
+ import client from './client';
2
+
3
+ const register = pushToken => client.post('/api/notifications/register-token', {token: pushToken});
4
+
5
+ export default {
6
+ register,
7
+ }
@@ -0,0 +1,9 @@
1
+ import client from './client';
2
+
3
+ const send = (message, data) => {
4
+ return client.post('/api/notifications/send-notification', {message, data})
5
+ };
6
+
7
+ export default {
8
+ send
9
+ };
package/api/ping.js ADDED
@@ -0,0 +1,9 @@
1
+ import apiClient from './client'
2
+
3
+ const endpoint = '/ping';
4
+
5
+ const ping = () => apiClient.get(endpoint);
6
+
7
+ export default {
8
+ ping
9
+ }
package/api/users.js ADDED
@@ -0,0 +1,35 @@
1
+ import client from './client';
2
+
3
+ const activateAccount = (email, token, clientId, password) => client.post('/api/user/activate', {email: email, token: token, clientId: clientId, password: password});
4
+ const getProfile = token => client.get('/api/user/profile', {}, {
5
+ headers: { 'Authorization': 'Bearer ' + token},
6
+ });
7
+ const register = userInfo => client.post('/api/user/register', userInfo);
8
+ const resendactivationEmail = email => client.post('/api/user/resend-activation-email', {email: email});
9
+ const updateProfile = profileInfo => client.put('/api/user/profile', profileInfo);
10
+ const validateEmailToken = (email, token) => client.post('/api/user/validate-email-token', {email: email, token: token});
11
+ const uploadUserImage = formData => client.post('/api/user/image', formData, {
12
+ headers: { 'Content-Type': 'multipart/form-data'},
13
+ });
14
+ const userImage = () => client.get('/api/user/image');
15
+ const userSettings = () => client.get('/api/user/settings');
16
+ const updateUserSettings = settings => client.put('/api/user/settings', settings);
17
+ const uploadUserBackgroundImage = formData => client.post('/api/user/background-image', formData, {
18
+ headers: { 'Content-Type': 'multipart/form-data' },
19
+ });
20
+ const userBackgroundImage = () => client.get('/api/user/background-image');
21
+
22
+ export default {
23
+ activateAccount,
24
+ getProfile,
25
+ register,
26
+ resendactivationEmail,
27
+ updateProfile,
28
+ uploadUserImage,
29
+ uploadUserBackgroundImage,
30
+ userBackgroundImage,
31
+ userImage,
32
+ userSettings,
33
+ updateUserSettings,
34
+ validateEmailToken
35
+ };
@@ -0,0 +1,48 @@
1
+ import React, {useEffect, useRef} from 'react';
2
+ import {View, StyleSheet} from "react-native";
3
+
4
+ import Animation from "./Animation";
5
+ import useStyle from "../hooks/useStyle";
6
+
7
+ function ActivityIndicator({ visible = false , type="default"}) {
8
+ const defaultStyles = useStyle();
9
+
10
+ const styles = StyleSheet.create({
11
+ overlay: {
12
+ flex:1,
13
+ justifyContent: 'center',
14
+ alignItems: 'center',
15
+ backgroundColor: defaultStyles.backgroundColor,
16
+ height: '100%',
17
+ position: 'absolute',
18
+ width: '100%',
19
+ zIndex: 1,
20
+ opacity: 0.8
21
+ },
22
+ default: {
23
+ flex: 1,
24
+ justifyContent: 'center',
25
+ alignItems: 'center'
26
+ }
27
+ });
28
+
29
+ if (!visible) {
30
+ return null;
31
+ }
32
+
33
+ const style = type === 'default' ? styles.default : styles.overlay;
34
+
35
+ return (
36
+ <View style={style}>
37
+ <Animation
38
+ source={require('../assets/animations/loader.json')}
39
+ autoPlay={true}
40
+ loop={true}
41
+ style={{height: 100, width: 100, opacity: 1}}
42
+ speed={1.5}
43
+ />
44
+ </View>
45
+ );
46
+ }
47
+
48
+ export default ActivityIndicator;
@@ -0,0 +1,21 @@
1
+ import React, {useEffect, useRef} from 'react';
2
+ import LottieView from "lottie-react-native";
3
+
4
+ function Animation({source, style, onAnimationFinish, autoPlay = true, loop = true, speed = 1.5}) {
5
+
6
+ const lottieRef = useRef(null);
7
+
8
+ return(
9
+ <LottieView
10
+ source={source}
11
+ autoPlay={autoPlay}
12
+ loop={loop}
13
+ style={style}
14
+ speed={speed}
15
+ onAnimationFinish={onAnimationFinish}
16
+ ref={lottieRef}
17
+ />
18
+ );
19
+ }
20
+
21
+ export default Animation;
@@ -0,0 +1,104 @@
1
+ import React, {useEffect} from 'react';
2
+
3
+ import apiClient from "../api/client";
4
+ import authStorage from "../auth/storage";
5
+ import settings from "../config/settings";
6
+ import useAuth from '../hooks/useAuth';
7
+
8
+ // call to refresh an access token using our refresh token
9
+ const refreshToken = async (token) => {
10
+ const formData = new FormData();
11
+ formData.append('client_id', settings.clientId);
12
+ formData.append('grant_type', 'refresh_token');
13
+ formData.append('refresh_token', token);
14
+ formData.append('scope', 'basic');
15
+
16
+ const result = await apiClient.post(settings.discovery.tokenEndpoint, formData, {
17
+ headers: {'Content-Type': 'multipart/form-data'}
18
+ });
19
+
20
+ const newToken = {
21
+ accessToken: result.data.access_token,
22
+ expiresIn: result.data.expires_in,
23
+ refreshToken: result.data.refresh_token,
24
+ tokenType: result.data.token_type,
25
+ };
26
+ authStorage.storeAuthToken(newToken);
27
+
28
+ return newToken;
29
+ }
30
+
31
+ function ApiInterceptor(props) {
32
+ const {user, logout} = useAuth();
33
+ let refreshing = null;
34
+
35
+ const addTransformers = () => {
36
+
37
+ const requestTransformers = apiClient.asyncRequestTransforms.length;
38
+ const responseTransformers = apiClient.asyncResponseTransforms.length;
39
+ const transformersAdded = requestTransformers + responseTransformers > 1;
40
+
41
+ if (!transformersAdded) {
42
+ apiClient.addAsyncRequestTransform(async request => {
43
+ const authToken = await authStorage.getAuthToken();
44
+
45
+ if (!authToken) {
46
+ return;
47
+ }
48
+
49
+ if (settings.xDebugHeader === true) {
50
+ if (!request.params) {
51
+ request.params = [];
52
+ }
53
+ request.params['XDEBUG_SESSION'] = 'PHPSTORM';
54
+ }
55
+
56
+ request.headers['Authorization'] = 'Bearer ' + authToken.accessToken;
57
+ });
58
+
59
+ // check for a 401 response (expired access token), use refresh token to fetch new access token, retry request
60
+ apiClient.addAsyncResponseTransform(async response => {
61
+ if (response.ok) {
62
+ return response.data;
63
+ }
64
+
65
+ if (response.problem) {
66
+ const originalConfig = response.config;
67
+
68
+ //Access Token was expired, grab a fresh one using the refresh token and try again
69
+ if (originalConfig.url !== settings.discovery.authEndpoint && response.status === 401 && !originalConfig.retry) {
70
+ // settimng retry flag to allow retrying once and not loop infinitely
71
+ originalConfig.retry = true;
72
+ try {
73
+ const token = await authStorage.getAuthToken();
74
+ if (token) {
75
+ // first request to refresh will call the method, all the other requests will await the promise
76
+ // so only one call to refresh will be made in the case of multile async 401s
77
+ refreshing = refreshing ? refreshing : refreshToken(token.refreshToken);
78
+ await refreshing;
79
+ refreshing = null;
80
+
81
+ return apiClient.any(originalConfig);
82
+ } else {
83
+ return logout();
84
+ }
85
+ } catch (_error) {
86
+ // if we get here, the refresh token has also expired, log the user out.
87
+ return logout();
88
+ }
89
+ }
90
+
91
+ return Promise.reject(response.problem);
92
+ }
93
+ });
94
+ }
95
+ }
96
+
97
+ useEffect( () => {
98
+ addTransformers();
99
+ }, []);
100
+
101
+ return null;
102
+ }
103
+
104
+ export default ApiInterceptor;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import {View, StyleSheet, Platform, TouchableOpacity, TouchableHighlight} from "react-native";
3
+
4
+ import Text from '../components/Text'
5
+ import colors from '../config/colors'
6
+ import defaultStyles from '../config/styles'
7
+
8
+ function Button({title, onPress, color, textColor}) {
9
+ return (
10
+ <TouchableHighlight style={[styles.roundbutton, {
11
+ backgroundColor: color ? colors[color]: styles.roundbutton.color,
12
+ }]} onPress={onPress}>
13
+ <Text style={[styles.text, {
14
+ color: textColor ? colors[textColor] : styles.text.color}]
15
+ }>{title}</Text>
16
+ </TouchableHighlight>
17
+ );
18
+ }
19
+
20
+ const styles = StyleSheet.create({
21
+ roundbutton: {
22
+ width: '100%',
23
+ height: 70,
24
+ borderRadius: 35,
25
+ backgroundColor: colors.primary,
26
+ justifyContent: 'center',
27
+ alignItems: 'center',
28
+ marginVertical: 10,
29
+ color: colors.black
30
+ },
31
+ text: {
32
+ fontFamily: defaultStyles.text.fontFamily,
33
+ color: colors.white,
34
+ fontSize: 18,
35
+ textTransform: 'uppercase',
36
+ fontWeight: 'bold'
37
+ }
38
+ });
39
+
40
+ export default Button;
@@ -0,0 +1,56 @@
1
+ import React from 'react';
2
+ import {StyleSheet, TouchableWithoutFeedback, View} from "react-native";
3
+ import {Image} from 'react-native-expo-image-cache';
4
+
5
+ import Text from './Text'
6
+ import colors from '../config/colors'
7
+ import useStyle from "../hooks/useStyle";
8
+
9
+ function Card({title, subtitle, imageUrl, onPress, thumbnaiilUrl}) {
10
+ const style = useStyle();
11
+
12
+ const styles = StyleSheet.create({
13
+ card: {
14
+ borderRadius: 15,
15
+ backgroundColor: style.box.backgroundColor,
16
+ marginBottom: 20,
17
+ overflow: "hidden"
18
+ },
19
+ image: {
20
+ width: '100%',
21
+ height: 200,
22
+ },
23
+ detailsContainer: {
24
+ padding: 20,
25
+ },
26
+ title: {
27
+ color: style.text.color
28
+ },
29
+ subtitle: {
30
+ color: style.errorText.color
31
+ }
32
+ });
33
+
34
+ return (
35
+ <TouchableWithoutFeedback onPress={onPress} >
36
+ <View style={styles.card}>
37
+ <Image
38
+ style={styles.image}
39
+ uri={imageUrl}
40
+ preview={{uri: thumbnaiilUrl}}
41
+ tint={'light'}
42
+ />
43
+ <View style={styles.detailsContainer}>
44
+ <Text style={styles.title} numberOfLines={1}>
45
+ {title}
46
+ </Text>
47
+ <Text style={styles.subtitle} numberOfLines={5}>
48
+ {subtitle}
49
+ </Text>
50
+ </View>
51
+ </View>
52
+ </TouchableWithoutFeedback>
53
+ );
54
+ }
55
+
56
+ export default Card;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import {View, StyleSheet, TouchableOpacity} from "react-native";
3
+
4
+ import Text from '../components/Text'
5
+ import Icon from '../components/Icon'
6
+ import useStyle from "../hooks/useStyle";
7
+
8
+ function CategoryPickerItem({item, onPress}) {
9
+ const style = useStyle();
10
+
11
+ const styles = StyleSheet.create({
12
+ container: {
13
+ flex: 1,
14
+ paddingHorizontal: 20,
15
+ paddingVertical: 15,
16
+ alignItems: 'center',
17
+ justifyContent: 'center'
18
+ },
19
+ label: {
20
+ paddingTop: 5,
21
+ textAlign: 'center',
22
+ color: style.text.color
23
+ }
24
+ })
25
+
26
+ return <TouchableOpacity onPress={onPress} style={styles.container}>
27
+ <Icon backgroundColor={item.backgroundColor} name={item.icon} size={80}/>
28
+ <Text style={styles.label}>{item.label}</Text>
29
+ </TouchableOpacity>;
30
+ }
31
+ export default CategoryPickerItem;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import {StyleSheet, View} from "react-native";
3
+ import RNDateTimePicker from "@react-native-community/datetimepicker";
4
+
5
+ function DateTimePicker({ ...props } ) {
6
+
7
+ return (
8
+ <RNDateTimePicker {...props} />
9
+ );
10
+ }
11
+
12
+ export default DateTimePicker;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import {View, StyleSheet} from "react-native";
3
+ import {MaterialCommunityIcons} from "@expo/vector-icons";
4
+
5
+ function Icon({name, size = 40, backgroundColor, borderRadius , iconColor = 'white'}) {
6
+ borderRadius = borderRadius ? borderRadius : size /2;
7
+
8
+ const styles = StyleSheet.create({
9
+ icon: {
10
+ width: size,
11
+ height: size,
12
+ borderRadius: borderRadius,
13
+ backgroundColor: backgroundColor,
14
+ justifyContent: "center",
15
+ alignItems: "center"
16
+ }
17
+ });
18
+
19
+ return (
20
+ <View style={styles.icon}>
21
+ <MaterialCommunityIcons name={name} color={iconColor} size={size / 2} />
22
+ </View>
23
+ );
24
+ }
25
+
26
+
27
+
28
+ export default Icon;
@@ -0,0 +1,61 @@
1
+ import React, {useContext, useEffect, useState} from 'react';
2
+ import {Image as RNImage, StyleSheet, View} from "react-native";
3
+
4
+ import storage from '../auth/storage';
5
+ import * as Notifications from "expo-notifications";
6
+ import useAuth from "../hooks/useAuth";
7
+ import authStorage from "../auth/storage";
8
+ import settings from '../config/api';
9
+ import AuthContext from "../auth/context";
10
+
11
+ function Image({style, uri, onPress, handleError, source}) {
12
+ const {user, setUser} = useContext(AuthContext);
13
+
14
+ const tryAgain = async error => {
15
+ if (handleError !== null) {
16
+ handleError();
17
+ }
18
+ setTimeout(() => {
19
+
20
+ }, 1000);
21
+ };
22
+ let imageSource;
23
+ let protectedUri = false;
24
+
25
+ if (typeof source === 'object' && 'uri' in source !== null && (typeof source.uri === 'string' || source.uri instanceof String)) {
26
+ imageSource = source;
27
+
28
+ if (source.uri.startsWith(settings.baseURL)) {
29
+ imageSource = { headers: {Authorization: 'Bearer ' + user.authToken.accessToken }, uri: source.uri};
30
+ protectedUri = true;
31
+ }
32
+ }
33
+ else if (uri) {
34
+ imageSource = {uri: uri}
35
+
36
+ if (uri.startsWith(settings.baseURL)) {
37
+ imageSource = { headers: {Authorization: 'Bearer ' + user.authToken.accessToken }, uri: uri};
38
+ protectedUri = true;
39
+ }
40
+ } else if (source) {
41
+ imageSource = source;
42
+ }
43
+
44
+ if ((null !== user.authToken.accessToken && protectedUri == true) || protectedUri == false) {
45
+ return (
46
+ <RNImage
47
+ source={imageSource}
48
+ style={style}
49
+ onError={tryAgain}
50
+ ></RNImage>
51
+ );
52
+ }
53
+ }
54
+
55
+ const styles = StyleSheet.create({
56
+ container: {}
57
+ })
58
+
59
+ export default Image;
60
+
61
+
@@ -0,0 +1,97 @@
1
+ import React, {useEffect} from 'react';
2
+ import {Alert, Image, StyleSheet, TouchableWithoutFeedback, View} from "react-native";
3
+
4
+ import colors from '../config/colors'
5
+ import Icon from './Icon';
6
+ import useCamera from '../hooks/useCamera';
7
+ import usePhotos from '../hooks/usePhotos';
8
+ import useStyle from "../hooks/useStyle";
9
+
10
+ function ImageInput({imageUri, onChangeImage, onCancel = () => {}, mode = 'both'}) {
11
+
12
+ const camera = useCamera();
13
+ const photos = usePhotos();
14
+ const style = useStyle();
15
+
16
+ const styles = StyleSheet.create({
17
+ container: {
18
+ alignItems: 'center',
19
+ backgroundColor: style.formInput.backgroundColor,
20
+ color: style.formInput.color,
21
+ borderRadius: 15,
22
+ justifyContent: 'center',
23
+ height: 100,
24
+ width: 100,
25
+ overflow: 'hidden'
26
+ },
27
+ image: {
28
+ width: '100%',
29
+ height: '100%',
30
+ }
31
+ })
32
+
33
+ const handlePress = async () => {
34
+ if (!imageUri) {
35
+ switch (mode) {
36
+ case 'camera':
37
+ selectImage('camera')
38
+ break;
39
+ case 'photos':
40
+ selectImage('photos');
41
+ break;
42
+ case 'both':
43
+ default:
44
+ Alert.alert(
45
+ 'Please choose',
46
+ null,
47
+ [
48
+ { text: 'Photos', onPress: () => selectImage('photos') },
49
+ { text: 'Camera', onPress: () => selectImage('camera') },
50
+ { text: 'Cancel', style: 'cancel' }
51
+ ]
52
+ );
53
+ }
54
+
55
+ } else {
56
+ Alert.alert('Remove', 'are you sure you want to remove this image?', [
57
+ { text: 'Yes', onPress: () => onChangeImage(null)},
58
+ { text: 'No'},
59
+ ]);
60
+ }
61
+ };
62
+
63
+ const selectImage = async (pickerType) => {
64
+ try {
65
+ if (pickerType === 'camera') {
66
+ const result = await camera.takePhoto({
67
+ allowsEditing: true,
68
+ quality: 0.5
69
+ });
70
+ result.canceled ? onCancel() : onChangeImage(result.assets[0].uri);
71
+ } else {
72
+ const result = await photos.selectImage({
73
+ quality: 0.5
74
+ });
75
+ result.canceled ? onCancel() : onChangeImage(result.assets[0].uri);
76
+ }
77
+
78
+ } catch (error) {
79
+ Alert.alert('Image error', 'Error reading image');
80
+ console.log(error);
81
+ }
82
+ };
83
+
84
+ return (
85
+ <TouchableWithoutFeedback onPress={handlePress}>
86
+ <View style={styles.container}>
87
+ {!imageUri ? (
88
+ <Icon name="camera" size={75} iconColor={colors.medium} />
89
+ ) : (
90
+ <Image source={{ uri: imageUri }} style={styles.image} />
91
+ )}
92
+ </View>
93
+ </TouchableWithoutFeedback>
94
+ );
95
+ }
96
+
97
+ export default ImageInput;
@@ -0,0 +1,34 @@
1
+ import React, {useRef} from 'react';
2
+ import {FlatList, Image, ScrollView, StyleSheet, TouchableWithoutFeedback, View} from "react-native";
3
+ import ImageInput from "./ImageInput";
4
+
5
+ function ImageInputList({imageUris = [], onAddImage, onRemoveImage}) {
6
+ const scrollView = useRef();
7
+
8
+ return <View>
9
+ <ScrollView ref={scrollView} horizontal onContentSizeChange={ () => scrollView.current.scrollToEnd() } >
10
+ <View style={styles.container}>
11
+ { imageUris.map( uri => (
12
+ <View key={uri} style={styles.image}>
13
+ <ImageInput imageUri={uri} onChangeImage={ () => onRemoveImage(uri)} />
14
+ </View>
15
+ )) }
16
+ <ImageInput onChangeImage={ uri => onAddImage(uri) } />
17
+ </View>
18
+ </ScrollView>
19
+ </View>;
20
+ }
21
+
22
+ const styles = StyleSheet.create({
23
+ container: {
24
+ flexDirection: 'row'
25
+ },
26
+ image: {
27
+ marginRight: 5
28
+ },
29
+ list: {
30
+ backgroundColor: 'yellow'
31
+ }
32
+ })
33
+
34
+ export default ImageInputList;