discussions-and-proposals
discussions-and-proposals copied to clipboard
Cant update native UI component on Android
I am trying to create a custom UI view on Android but i need to initial and call the
createViewInstance ()
just after that i am getting my props via JS side ,
E.g -
Java:
@Override @NonNull public MyView createViewInstance(ThemedReactContext reactContext) { String stringFromJS = "Daniel"; return new MyView("Daniel") }
JS:
<MyView stringFromJS="Daniel" />
The issue is that MyView mount before that i have to access my props from JS ("Daniel")
is there any way to invoke manually createViewInstance with the params from JS?