#65 Dynamic Path For Local Assets Images In React Native

#65 Dynamic Path For Local Assets Images In React Native

Harinder Singh

3 года назад

16,708 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ajay Vishwakarma
Ajay Vishwakarma - 06.09.2023 12:35

Thanks sir ji

Ответить
Çağın Sucu
Çağın Sucu - 26.06.2023 16:26

Thank you man. Very helpful :)

Ответить
Karen Pinzás Morrongiello
Karen Pinzás Morrongiello - 08.06.2023 08:24

Thanks! solved my issue!

Ответить
sandeep kumar sahu
sandeep kumar sahu - 08.02.2023 10:08

Mere life k 15 minutes waapis chahiye mujhe....!!

Ответить
muhammad shahid
muhammad shahid - 27.10.2022 18:02

you are best.....super sy b uuper

Ответить
Chris Campbell
Chris Campbell - 20.07.2022 09:24

"using" starts with a U, not a J

Ответить
Arshdeep Chhokar
Arshdeep Chhokar - 31.08.2021 04:29

Very helpful, thanks!

Ответить
Adetayo Joseph Adesiyan
Adetayo Joseph Adesiyan - 15.08.2021 15:58

Thanks man. I have spent 4 hours looking for the solution you just gave . gracias.

Ответить
Oğuzhan
Oğuzhan - 13.08.2021 23:17

thanks

Ответить
Abhishek Verma
Abhishek Verma - 01.07.2021 08:18

how can we create the image object by scanning the folder for images?

Ответить
Dmytro Yakymenko
Dmytro Yakymenko - 13.06.2021 13:40

Is this REALY react native? For me it looks like something more from web, not the react native on which I am developing my apps...

Ответить
Danuel
Danuel - 25.05.2021 23:50

thanks!

Ответить
Mr. Emil
Mr. Emil - 02.05.2021 17:05

how to do it through JSON?
I have such a structure now
{
"food": [
{
"id": 1,
"title": "Pizza",
"image": "require('../img/pizza.png')",
"price": 100
}
]
}

{food.map((item) => {

return (
<View key={item.id}>
<Image source={item.image} style={{ width: 40, height: 40 }} />
<Text>{item.title}</Text>
<Text>{item.price}</Text>
</View>
);
})}

is not working

Ответить
Pedro Felipe Lima
Pedro Felipe Lima - 09.04.2021 00:22

I'm using a local image to source my ImageBackground but when the app start exists a delay of +- 0.5 sec to load the image. Do you know how fix this behavior I'm using require('../src/img/background.png'( on source of ImageBackground element.

Ответить
Elder Millennial X
Elder Millennial X - 19.01.2021 00:50

Thank you for this video. This is great!

Ответить
Oladapo Osunkeye
Oladapo Osunkeye - 15.01.2021 23:59

I was going crazy until I saw your video, even it's not the full answer. I want to dynamically set an image based on selection. but thanks for the video

Ответить
Sadiq Rauf
Sadiq Rauf - 29.11.2020 05:53

Hello sir,
Can you make a video on how to download photos back...like when we create a poetry type app...and sir, is this possible without Firebase..

Ответить
M Sp
M Sp - 23.11.2020 19:05

Thank you! This is GOLD!

Ответить
ITA PUNJABI
ITA PUNJABI - 23.11.2020 12:56

Thanks bro

Ответить