java - Modifying react-native files -


i changed baseviewmanager.java file inside of react-native make resource-id available thru react-native. thing no matter do, nothing takes effect, if put typos in .java files. colleague told me it's because .java not being built.

so how build react-native .java files??

i tried npm start of course nothing took effect.

and code want change

@reactprop(name = prop_test_id)   public void settestid(t view, string testid) {     view.settag(r.id.react_test_id, testid);      // temporarily set tag , keyed tags avoid end end test regressions     view.settag(testid);   }    @reactprop(name = prop_native_id)   public void setnativeid(t view, string nativeid) {     view.settag(r.id.view_tag_native_id, nativeid);     reactfindviewutil.notifyviewrendered(view); } 

you have build react native source. here tutorial that: https://facebook.github.io/react-native/docs/android-building-from-source.html tried , works :)


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -