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

Image size not working on web #1429

Closed
2 of 6 tasks
mathis-kdio opened this issue Dec 2, 2023 · 6 comments
Closed
2 of 6 tasks

Image size not working on web #1429

mathis-kdio opened this issue Dec 2, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mathis-kdio
Copy link

Description

The "size" property doesn't seem to work on the web with expo

CodeSandbox/Snack link

No response

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

gluestack-ui Version

1.0.19

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

  <VStack alignItems='center'>
    <Image
      size='xl'
      alt="Logo de l'application"
      source={require('@assets/icon.png')}/>
  </VStack>

image

@mathis-kdio mathis-kdio added the bug Something isn't working label Dec 2, 2023
@Viraj-10 Viraj-10 assigned makkarMeenu and unassigned mayank-96 Dec 4, 2023
@makkarMeenu
Copy link
Collaborator

Thanks for reporting, we will have a look!

@makkarMeenu
Copy link
Collaborator

makkarMeenu commented Dec 5, 2023

@mathis-kdio I couldn't reproduce this in expo application. Can you please provide me an expo repository with error producible code?

@mathis-kdio
Copy link
Author

here an example. If you change xl to sm, the image doesn't change size on the web, but it does on Android.

@makkarMeenu
Copy link
Collaborator

makkarMeenu commented Dec 6, 2023

@mathis-kdio Can you try creating an expo application. For some reason, it is not working on expo-snack. We will anyway make it working on expo-snack as well.

@Gluant101 Gluant101 moved this from Backlog to In Progress in gluestack support Dec 12, 2023
@jayala
Copy link

jayala commented Jan 4, 2024

Is it possible that this is caused by the GlueStack using React Native's Image component instead of Expo's Image? https://github.com/gluestack/gluestack-ui/blob/main/packages/themed/src/components/Image/styled-components/Root.tsx#L1

@surajahmed
Copy link
Contributor

This issue is fixed in @gluestack-ui/config version 1.0.12. Please update it to the latest and try again.
Feel free to reopen if this issue persists.

@github-project-automation github-project-automation bot moved this from In Progress to Done in gluestack support Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants