You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey!
The Image component does not return the actual size of the image.
I connect to the image an image with a size of 720x5373 pixels.
But in onLoad I get dimensions - 240x1791 pixels.
This leaves some padding in the image. Why is the size different?
Even the Image.getSize method returns the wrong dimensions ...
`
import React, { useState } from "react";
import { Image, ScrollView, Dimensions } from "react-native";
Hey!
The Image component does not return the actual size of the image.
I connect to the image an image with a size of 720x5373 pixels.
But in onLoad I get dimensions - 240x1791 pixels.
This leaves some padding in the image. Why is the size different?
Even the Image.getSize method returns the wrong dimensions ...
`
import React, { useState } from "react";
import { Image, ScrollView, Dimensions } from "react-native";
const App = () => {
const [W, setSizeW] = useState(null);
const [H, setSizeH] = useState(null);
};
`
I can't find the reason for several days
More like a bug
It seems that the reactant itself compresses the image ...
Can this be disabled somehow?
The text was updated successfully, but these errors were encountered: