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
I'm new to using react native and am using react-native-view-shot to capture a view. I have been struggling to figure out how to prevent the letterbox effect and larger font size from appearing on my SE iPhone. The capture of a simple view was done on an Iphone 12 and sent to my SE phone (via whatsapp). I know there is no way of telling what your target device is. But how do most people get around this issue? They simply just accept it because of (16:9) for SE and iPhone 12 (19.5:9)? The code works fine on the device itself. It's just when you send from an iPhone 12 to SE, and view the image on the SE, you get a larger font and letterboxing. Surely there must be a way around this. Your help would be much appreciated.
``
import { PixelRatio, Dimensions } from "react-native";
import { captureRef } from "react-native-view-shot";
import * as FileSystem from "expo-file-system";
import * as Sharing from "expo-sharing";
Hi
I'm new to using react native and am using react-native-view-shot to capture a view. I have been struggling to figure out how to prevent the letterbox effect and larger font size from appearing on my SE iPhone. The capture of a simple view was done on an Iphone 12 and sent to my SE phone (via whatsapp). I know there is no way of telling what your target device is. But how do most people get around this issue? They simply just accept it because of (16:9) for SE and iPhone 12 (19.5:9)? The code works fine on the device itself. It's just when you send from an iPhone 12 to SE, and view the image on the SE, you get a larger font and letterboxing. Surely there must be a way around this. Your help would be much appreciated.
``
import { PixelRatio, Dimensions } from "react-native";
import { captureRef } from "react-native-view-shot";
import * as FileSystem from "expo-file-system";
import * as Sharing from "expo-sharing";
export const captureShare = async (viewRef) => {
try {
if (!viewRef) return;
} catch (error) {
console.error("Error capturing or sharing screenshot:", error);
}
};
The text was updated successfully, but these errors were encountered: