[ios] Inverse scale transforms results in pixelated blurred poor resolution views #48673
Labels
API: Transforms
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Platform: iOS
iOS applications.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
We have a production app where we have a pinch gesture handler that allows pinch zooming on a map. When the map is zoomed in (scaled up) the child POIs are scaled down to preserve sizing of POIs. Example, if the parent View is scaled by 100 the child POI View is then scaled by 0.01 to counteract the transform and preserve sizing. This works perfectly on Android; however, IOS results in a very pixelated render of the child POI View. It appears on IOS, when a View has nested scale transforms applied such that they are inverse the resulting render is pixelated. On Android the View appears high resolution as expected. (See screenshots below).
See main code in
app/{tabs}/index.jsx
of repro.Related:
#42837
Steps to reproduce
Both Architectures: Paper & Fabric
IOS
npm install
andnpx pod-install
npx react-native run-ios
ornpm start
and open on ios expoANDROID
npm install
npx react-native run-android
React Native Version
0.76.6
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/wen-kai/expo-sandbox/tree/scale-bug
Screenshots and Videos
Actual (IOS):
Expected (Android):
The text was updated successfully, but these errors were encountered: