Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does uri prop accept base64 encoded string? #153

Open
GwFreak01 opened this issue Nov 3, 2020 · 1 comment
Open

Does uri prop accept base64 encoded string? #153

GwFreak01 opened this issue Nov 3, 2020 · 1 comment

Comments

@GwFreak01
Copy link

As the title states.

The data is

const images = [
     {
          uri: "data:image/jpeg;base64,sadflhasdefkjdhskj2345jfhkj2bdf"
     }
]

I tested my base64 encoded string with react-native's built-in Image component and passed in

<Image style={{width: 300, height: 300}} source={{uri: images[0].uri}} />

and the image gets displayed.

When I try to do

<Image
                style={{width: 300, height: 300}}
                preview={{ uri: images[0].uri }}
                tint="light"
                uri={images[0].uri}
              />

I see the blurred preview of my image, but it doesn't actually render all the way which is very strange.

I think I might be misunderstanding something?

@root123-bot
Copy link

Same issue I'm facing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants