File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 33 UserPublicDTOIntentionsEnum ,
44 WeightedLatLngDTO ,
55} from "@/api/gen/src" ;
6+ import { Image } from "react-native" ;
67
78export enum TOURKEY {
89 FIND = "find" ,
@@ -73,7 +74,8 @@ export const MOCK_ENCOUNTER = (
7374 age : 27 ,
7475 firstName : "Lisa" ,
7576 imageURIs : [
76- "https://blog.offlinery.io/blogs/get-approached-as-women-e588a97a.jpg" ,
77+ Image . resolveAssetSource ( require ( "../assets/lisa-example.jpg" ) )
78+ . uri ,
7779 ] ,
7880 intentions : [
7981 UserPublicDTOIntentionsEnum . friendship ,
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ export const getValidImgURI = (
1414 } else if (
1515 img . includes ( "file:" ) ||
1616 img . trimStart ( ) . startsWith ( "/" ) ||
17- img . trimStart ( ) . startsWith ( "https://" )
17+ img . trimStart ( ) . startsWith ( "https://" ) ||
18+ img . trimStart ( ) . startsWith ( "http://" )
1819 ) {
1920 return img ; // keep local file uri
2021 }
You can’t perform that action at this time.
0 commit comments