discussions-and-proposals icon indicating copy to clipboard operation
discussions-and-proposals copied to clipboard

Cant update native UI component on Android

Open DanielFrTB opened this issue 2 years ago • 0 comments

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?

DanielFrTB avatar Aug 25 '22 11:08 DanielFrTB