Giter Site home page Giter Site logo

Comments (11)

ascoders avatar ascoders commented on June 9, 2024

Can you give me a example image?

from react-native-image-zoom.

dhcmega avatar dhcmega commented on June 9, 2024

Sorry, what do you mean with an example? The code I pasted is what I have. Isn't it an example?
Do you want the whole render() method?
Thanks!!

EDIT: My problem might be related to the problem of not knowing the size of the image, as this screen is used for different, changing, images.

from react-native-image-zoom.

dhcmega avatar dhcmega commented on June 9, 2024

Image is 4 o 5 times bigger than screen and cannot be reduced.

@connect(mapStateToProps)
export default class ImageView extends Component {
  render() {
    const { url, use } = this.props;
    const source = {
      uri: `${url}`,
      headers:
        {
          Authorization: `Bearer ${use.token}`,
        },
    }
    return (
      <ImageZoom
        cropWidth={Dimensions.get('window').width}
        cropHeight={Dimensions.get('window').height}
        imageWidth={3300}
        imageHeight={1800}
      >
        <Image
          style={{ width: 3300, height: 1800 }}
          resizeMode="contain"
          source={source}
        />
      </ImageZoom>
    );
  }
}

from react-native-image-zoom.

dhcmega avatar dhcmega commented on June 9, 2024

@ascoders if I set imageWidth={400}, imageHeight={400}, style={{ width: 400, height: 400 }} it more or less work, but image is not centered, depends on the size of the screen.

from react-native-image-zoom.

ascoders avatar ascoders commented on June 9, 2024

@dhcmega imageWidth and imageHeight should be the image's original size.

from react-native-image-zoom.

dhcmega avatar dhcmega commented on June 9, 2024

@ascoders yes, I know, these are the real values: imageWidth={3300} and imageHeight={1800} with these values, image doesn't show up.

from react-native-image-zoom.

ascoders avatar ascoders commented on June 9, 2024

This is a real bug.

from react-native-image-zoom.

Dalamar avatar Dalamar commented on June 9, 2024

Any updates on that?

from react-native-image-zoom.

LukeDefeo avatar LukeDefeo commented on June 9, 2024

any update on this, im facing a similar issue. It only manifests itsself in release builds on iOS

from react-native-image-zoom.

Salil999 avatar Salil999 commented on June 9, 2024

+1 having issues on this

from react-native-image-zoom.

roxxid avatar roxxid commented on June 9, 2024

Were you able to solve this?

from react-native-image-zoom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.