[Bug][Android] NativeMethodMixins don't work unless the view has a native property #9382
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
NativeMethodMixins don't work unless the view has a native property. As far as I know this bug only happens on Android, I'm testing with a device on Android Marshmallow API 23, according to one of my coworkers the example below has no issue on iOS.
I've brought down my test case to this simple component.
When you render this component, you should see something like
0 0 50 0
in the console while debugging with Chrome. Now if I removestyle={{opacity:1}}
part, I getundefined undefined undefined undefined
in the console. The expected behavior is I should keep getting the same log even when the style prop is removed.Putting break points in NativeViewHierarchyManager#createView method, it was never invoked with
myView
when the native property is removed. I check which views are created on the native side by printing withfindNodeHandle
function.The text was updated successfully, but these errors were encountered: