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
So I have an app that built with react-native-macos. The app uses native NSOpenPanel to open local files. Recently I found the some of the items were missing when the file open panel invoked:
(The first image is when the issue occurred and the second image is expected)
(In case you try to reproduce the issue, the panel needs to be in list view, and there's should at least 3 levels in the file tree. Toggling the gray triangle to show/hide the node you will see the problem)
I found that the problematic code is -[NSView(NSViewAnimationWithBlocks) actionForLayer:forKey:], where this category method takes over ALL calls even the view is not a react-native view. Remove this method will fix the problem, and LayoutAnimation seems works fine. But I don't know if it would break something because I'm not sure what it really does. So what's the right fix?
The text was updated successfully, but these errors were encountered:
I’m out on vacation until 22nd October, but on the top of my head this came from some third-party lib. Try with this being commented for a while, I’ll try to look at this when I’m back. And thank you for your interest again, it means a lot.
So I have an app that built with react-native-macos. The app uses native
NSOpenPanel
to open local files. Recently I found the some of the items were missing when the file open panel invoked:(The first image is when the issue occurred and the second image is expected)
(In case you try to reproduce the issue, the panel needs to be in list view, and there's should at least 3 levels in the file tree. Toggling the gray triangle to show/hide the node you will see the problem)
I found that the problematic code is
-[NSView(NSViewAnimationWithBlocks) actionForLayer:forKey:]
, where this category method takes over ALL calls even the view is not a react-native view. Remove this method will fix the problem, and LayoutAnimation seems works fine. But I don't know if it would break something because I'm not sure what it really does. So what's the right fix?The text was updated successfully, but these errors were encountered: