gregbrinker
gregbrinker
Has this been looked into anymore? The problem is super annoying 😢 @ivpusic
@matinzd I actually had to flip it lol. Aside from that, it works properly. This is on iPhone 13 Pro Max ``` withWidth:isPortrait ? [NSNumber numberWithFloat:track.naturalSize.height] : [NSNumber numberWithFloat:track.naturalSize.width] withHeight:isPortrait...
This took me a while to fully figure out. I tried many different things, and finally found what I believe to be the best solution for this. Hopefully this helps...
My team ran into a similar issue, however our issue was for multiple build configurations, not multiple targets. Leaving this solution here, as it might help with your situation as...
@mo22 @alessioemireni @skizzo This fix from @zhongwuzw worked for me. You can implement the same pattern in whichever sensors you're using https://github.com/react-native-sensors/react-native-sensors/pull/458
This worked great! While you're opening this PR, maybe it's worth doing this for the other libraries as well. Accelerometer, Barometer, etc.
If anyone is experiencing this, here's the patch my team used for react-native 0.76.5 ``` diff --git a/node_modules/react-native/React/CoreModules/RCTDeviceInfo.mm b/node_modules/react-native/React/CoreModules/RCTDeviceInfo.mm index 454a325..018b2f3 100644 --- a/node_modules/react-native/React/CoreModules/RCTDeviceInfo.mm +++ b/node_modules/react-native/React/CoreModules/RCTDeviceInfo.mm @@ -54,6 +54,11 @@...