react-native-weshop-wu

1、用户: WDAccountModule中 设置当前用户信息:setWDCurrentUser 设置用户角色信息:setWDRoleRoleInfo 刷新用户信息(有的接口使用的是刷新后的用户信息):setWDClientUserInfo

Usage no npm install needed!

<script type="module">
  import reactNativeWeshopWu from 'https://cdn.skypack.dev/react-native-weshop-wu';
</script>

README

适配微店:

1、用户:
WDAccountModule中
设置当前用户信息:setWDCurrentUser
设置用户角色信息:setWDRoleRoleInfo
刷新用户信息(有的接口使用的是刷新后的用户信息):setWDClientUserInfo

2、位置:
WDLocationModule中
设置选择城市Code:setWDSelectCityCode
设置选择城市名称:setWDSelectCityName
调用查询城市code接口:getWDCityByCityName

3、接口baseUrl:
base.js中
设置baseUrl:setWDBasePath

4、UI适配:
设置插件主颜色setMainColor
screen.js中设置导航栏高度适配:setWDStatusBarHeight;
全局搜索微店代码中通过uri引用原生的图片,拷贝到App中的资源文件中;
将assets目录下的weshop文件夹拷贝到项目asset中;

5、适配统一的Module原生:WeShopModule
   适配上传视频原生控件:VideoUploadView
   适配WebView原生支持控件:RNWebView

6、微店devDependencies中使用但是原项目dependencies中没有的库,需要在原项目中添加。