How to integrate 2x 3x images to React Native Project Both Android IOS

0 votes
I had added the same image's versions (@2x @3x)into src>asssets to work our platform in all devices. Here is the problem, VSCode only recognizes i.e path.png (it doesnt recognize @2x and @3x). How can we deal with this problem?
Nov 15, 2022 in Mobile Development by gaurav
• 23,260 points
751 views

1 answer to this question.

0 votes

React native automatically pick up the desired image from the 3 options available i.e. 1x, 2x, 3x. We just have to provide the filename for the base image. So, as stated above, when you have to use check image, just provide the image path for check

answered Nov 16, 2022 by gaurav
• 23,260 points

edited Mar 5

Related Questions In Mobile Development

0 votes
0 answers

How to login to a site using POST request? (Swift,iOS)

I want to create an iOS Application ...READ MORE

Nov 9, 2022 in Mobile Development by gaurav
• 23,260 points
763 views
0 votes
0 answers

How to use iOS Reachability

I'm developing an iPhone app that uses ...READ MORE

Nov 9, 2022 in Mobile Development by gaurav
• 23,260 points
646 views
0 votes
0 answers

How facebook measure app installs - Android/IOS

Facebook ads has a feature that it ...READ MORE

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
585 views
0 votes
0 answers

How to draw heart shape in UIView (iOS)?

I want to create different shapes. Below ...READ MORE

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
760 views
0 votes
0 answers

How to integrate @2x @3x images to React Native Project (Both Android & IOS)?

I had added the same image's versions ...READ MORE

Nov 11, 2022 in Mobile Development by gaurav
• 23,260 points
789 views
0 votes
0 answers

error: package com.android.annotations does not exist

This is my class: import com.android.annotations.NonNullByDefault; @NonNullByDefault public final class ...READ MORE

May 13, 2022 in Others by Kichu
• 19,040 points
3,699 views
0 votes
1 answer

Flutter project in iOS emulator takes forever to run, but its worked on Android emulator

Try flutter clean and flutter build ios ...READ MORE

answered Nov 18, 2022 in Mobile Development by gaurav
• 23,260 points
823 views
0 votes
0 answers

How to receive single tap and hold Remote-Control Event with iOS

I'm looking for my app to listen ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
538 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP