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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -