React Native Android 代码中设置访问js 的地址
在onCreate 方法中
SharedPreferences mPreferneces= PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
SharedPreferences.Editor editor=mPreferneces.edit(); editor.putString("debug_http_host","localhost:8080"); editor.commit();
原文链接:https://www.f2er.com/react/307428.html