React Native Android 代码中设置访问js 的地址
在onCreate 方法中
SharedPreferences mPreferneces= PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
SharedPreferences.Editor editor=mPreferneces.edit();
editor.putString("debug_http_host","192.168.199.12:8081");
editor.commit();
网友评论