没有合适的资源?快使用搜索试试~ 我知道了~
:two_men_holding_hands: :two_women_holding_hands: 通过使用 HoC 而不是组件...
共67个文件
js:13个
json:5个
plist:4个
需积分: 5 0 下载量 68 浏览量
2021-06-08
16:24:44
上传
评论
收藏 199KB ZIP 举报
温馨提示
通过使用 HoC 而不是组件来进行 A/B 测试的糟糕侵入方式。 用法 安装 $ npm install --save rn-ab-hoc Component /* list.js */ import abConnect from 'rn-ab-hoc'; 从 './flatList.js' 导入 FlatList; 导入 ListView rom './listView.js'; 导入 OtherList rom './otherList.js'; export default abConnect('ListExperiment', { variant: 'FlatList', component: FlatList }, { variant: 'ListView', component: ListView }, { variant: 'OtherList', component: OtherList }); 前面的代码定义了: 实验名称 不同变体及其名称和相关组件的列表 使用随机变体 /* app.js */ import React from 'react'; 从'./list'
资源推荐
资源详情
资源评论
收起资源包目录
rn-ab-hoc-master.zip (67个子文件)
rn-ab-hoc-master
.travis.yml 122B
.babelrc 34B
index.js 65B
.watchmanconfig 2B
.flowconfig 1KB
package.json 1KB
Example
ios
Example.xcodeproj
project.pbxproj 49KB
xcshareddata
xcschemes
Example.xcscheme 5KB
Example-tvOS.xcscheme 5KB
Example
main.m 510B
AppDelegate.h 451B
AppDelegate.m 1KB
Base.lproj
LaunchScreen.xib 4KB
Images.xcassets
AppIcon.appiconset
Contents.json 585B
Info.plist 2KB
Example-tvOSTests
Info.plist 765B
Example-tvOS
Info.plist 2KB
ExampleTests
ExampleTests.m 2KB
Info.plist 765B
.babelrc 34B
.watchmanconfig 2B
android
gradlew.bat 2KB
gradlew 5KB
gradle.properties 887B
keystores
debug.keystore.properties 105B
BUCK 152B
app
proguard-rules.pro 3KB
src
main
res
mipmap-hdpi
ic_launcher.png 3KB
values
strings.xml 70B
styles.xml 192B
mipmap-xxhdpi
ic_launcher.png 8KB
mipmap-mdpi
ic_launcher.png 2KB
mipmap-xhdpi
ic_launcher.png 5KB
java
com
example
MainActivity.java 359B
MainApplication.java 955B
AndroidManifest.xml 1KB
BUCK 2KB
build.gradle 6KB
gradle
wrapper
gradle-wrapper.jar 51KB
gradle-wrapper.properties 203B
settings.gradle 45B
build.gradle 642B
.flowconfig 1KB
package.json 540B
app.json 51B
src
FlatList.js 532B
List.ab-test.js 237B
Title.js 422B
ListView.js 723B
data.js 425B
RowItem.js 272B
index.ios.js 669B
.gitignore 774B
index.android.js 589B
.buckconfig 114B
yarn.lock 142KB
.gitattributes 16B
app.json 69B
src
reactNativeAbHoc.js 2KB
__tests__
reactNativeAbHoc.test.js 4KB
.eslintrc.js 295B
.gitignore 784B
.buckconfig 114B
README.md 3KB
setup
test.setup.js 123B
yarn.lock 186KB
.gitattributes 16B
共 67 条
- 1
资源评论
吾自行
- 粉丝: 58
- 资源: 4670
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功