RN crash when a gesture is used(Pinch, Pan, Tap) - react-native

I implement a function that uses the pinch zoom gesture with the landscape functionality
when I test this behavior, zooming in/out and rotating the phone moving from portrait to landscape, the application crash, and the react native console does not show any information or error to debug what is happening. I ran the application in Xcode and I replicate the above process and xCode console show the following error:
`
workletValueSetter#
#[native code]
CoreSimulator 857.7 - Device: iPhone 13 (79EC3549-CE88-47BC-A087-A44413A39A70) - Runtime: iOS 15.4 (19E240) - DeviceType: iPhone 13
2022-10-25 13:13:30.628274-0500 My Project[13003:284992] [connection] nw_socket_output_finished [C99.1:2] shutdown(38, SHUT_WR) [57: Socket is not connected]
dyld4 config: DYLD_ROOT_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/admin/Library/Developer/Xcode/DerivedData/MyProject-egluemphrpslqigtpcqlhjbdarok/Build/Products/Debug-iphonesimulator:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.4.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/admin/Library/Developer/Xcode/DerivedData/MyProject-egluemphrpslqigtpcqlhjbdarok/Build/Products/Debug-iphonesimulator
terminating with uncaught exception of type facebook::jsi::JSError: Exception in HostObject::get(propName:_value): mutex lock failed: Invalid argument
workletValueSetter#
#[native code]
CoreSimulator 857.7 - Device: iPhone 13 (79EC3549-CE88-47BC-A087-A44413A39A70) - Runtime: iOS 15.4 (19E240) - DeviceType: iPhone 13
(lldb)
`
that the application does not crash when I interact with the zoom in landscape and portrait mode

Related

Native resolution on iPhone 6, works on simulator but not on device

I'm having some problems enabling native resolution on the iPhone 6 on the actual device itself, when I run in the simulator it runs at native 375x667 (verified by both launchscreen and nslog of viewcontroller size.
2015-04-29 13:24:24.220 aqrew_ios[7851:1294675] ViewController:didLayoutSubviews() - Width=375.000000 Height=667.000000
However when I run the same code on an actual iPhone 6 (iOS8.3) its running at scaled iPhone 5 resolution.
2015-04-29 13:17:02.614 aqrew_ios[720:179633] ViewController:didLayoutSubviews() - Width=320.000000 Height=568.000000
I've been through the SO How to enable native resoltuion and have the following in the LaunchImage assets setup and working, app is portrait only, iphone only:
Launchimage screenshot
AppIcons are:
AppIcon screenshots
(I'm not allowed to post images as on this account (work) I dont have 10 rep points!)
However whilst it works perfectly on the iOS simulator its not working on the real device, would appreciate any ideas....
Thanks
If you go into the device settings app, in the 'display & brightness' section there is a setting called 'display zoom' which can be set to standard or zoomed. When zoom is enabled an iPhone 6+ scales up an iPhone 6 sized window, and an iPhone 6 zooms up an iphone 5 sized one.
(This caused me some stressful hours a couple months ago)

Xcode 6 ViewController content is smaller than the simulator screen

i'm developing app for both IOS7 & IOS8, and using storyBoard with size classes enabled.
app works fine in all simulators from iPhone 4s IOS7 to iPhone 6+
but the viewController is smaller than the screen in iPhone 5 with iOS7
app supports different orientations, i tried and canceled orientations but didn't work. i rested the simulator content, didn't work. I tried to change the initial view controller, didn't work. I cleaned the project, didn't work
To run your application in fullscreen in iPhone5 you must provide Launch Image for iPhone5 with resolution 640x1136.
If you are not including Launch Image of the size iPhone5 require then app will run in the centre of the screen, showing black area at top and bottom.
You can also refer here for more information.
Make sure there is a Default-568#2x.png in the supporting files

UIMenuController tap and hold zoom bubble fails in landscape mode

Supporting iOS 7. (non-AutoLayout)
Running iPhone 6 (iOS 8.1)
The UIMenuController doesn't show in Landscape mode, in effect breaking the UI for my users.
What's causing this to break?
Maybe it's the same problem that I have:
iPhone6 (no display zoom mode) UIMenuController truncated
The solution for me is to compile against iOS SDK 7.1. All others tries didn't help.

iPad orientation bug in iOS 8

I am getting a strange error when launching my app in iPad running on iOS 8 (only if launched in landscape mode). Though, it works very fine in iOS 7
Here is the screenshot: http://imgur.com/OZRLjZ7
The app is fully portrait mode except one screen (graph which requires both portrait & landscape modes) and so I can't uncheck landscape property in deployment target. If I uncheck landscape orientation support in deployment target then it works very fine. So it works fine when I launch in iPad with iOS 8 (ONLY if it is portrait mode). If I launch it in landscape mode it shows this black strip (which is exactly the area which keyboard takes but there no keyboard, neither I'm showing it on this screen).
Thanks for your help in advance!

Adding iOS 7 version of iPhone 4-inch launch image to project breaks launch image when run on iOS 7

I'm running into a problem on our landscape only app that targets iOS 6 and 7. Xcode gives me the following warning:
An iPhone Retina (4-inch) launch image for iOS 7.0 and later is required.
If I add the required images, when I launch the app on iOS 7, I get a black launch image shown. On iOS 6, it displays correctly. But without the images, it works just fine on both iOS 6 and 7.
I am already using Asset Catalogs in this project, so I don't think that's an issue.
I would really like to get rid of this warning, but I haven't been able to figure out a way around it.
XCode is looking for Portrait orientation for iPhone. You need to provide it for the launch image, but don’t let your application to rotate when device is in Portrait mode.
In order to do this you need to do the following:
Go to General -> Deployment Info -> Device Orientation. Deselect Landscape Left and Landscape Right. Select Portrait, then Landscape Left and Landscape Right, order is important!
Add the following function to your code (if not yet):
-(NSUInteger)supportedInterfaceOrientations
{
return (1 << UIInterfaceOrientationLandscapeLeft) | (1 << UIInterfaceOrientationLandscapeRight);
}
That’s all!
In my case (landscape only app), I was able to fix it by doing the following:
adding portrait to the supported orientations for the iPhone in my Info.plist
replacing shouldAutorotate: methods with supportedInterfaceOrientations and preferredInterfaceOrientationForPresentation in my view controllers.
added application:supportedInterfaceOrientationsForWindow: to my app delegate.
Also I had to make sure that in the Info.plist that the portrait orientation was listed first. Xcode had added it to the end of the list, but if it was there, it would still be a black display on launch. Moved to the top, it was properly detected by iOS when the app was launching.
LaunchImage import a 640*1136 picture,
BTW, LaunchImage in Images.xcassets
sample picture