Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
chore: 🤖 修改入口文件
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyling committed Mar 29, 2021
1 parent 33e4769 commit ae3a0f3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -94,7 +94,7 @@
- [ ] 部分组件属性继承 React Native 提供的组件,更贴近原组件使用(目前大部分只提供了 onPress 交互,还有其他很多可以用,可以向外暴露)
- [ ] 优化主题中未只用到的变量
- [ ] 时间单位,Vant 中部分组件使用毫秒,部分组件使用秒,在 Xant 中需要统一单位
- [ ] React Native 入口文件 `index.js` 需要重命名,`dumi` 生成动态依赖的时候会找到这个文件,不然每次更新 `dumi` 里面的 `.umi` 文件都要手动重命名一下
- [x] React Native 入口文件 `index.js` 需要重命名,`dumi` 生成动态依赖的时候会找到这个文件,不然每次更新 `dumi` 里面的 `.umi` 文件都要手动重命名一下

## 截图

Expand Down
1 change: 1 addition & 0 deletions android/app/build.gradle
Expand Up @@ -79,6 +79,7 @@ import com.android.build.OutputFile

project.ext.react = [
enableHermes: false, // clean and rebuild if changing
entryFile: "index.app.js"
]

apply from: "../../node_modules/react-native/react.gradle"
Expand Down
Expand Up @@ -31,7 +31,7 @@ protected List<ReactPackage> getPackages() {

@Override
protected String getJSMainModuleName() {
return "index";
return "index.app";
}
};

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ios/xant/AppDelegate.m
Expand Up @@ -49,7 +49,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.app" fallbackResource:nil];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
Expand Down

0 comments on commit ae3a0f3

Please sign in to comment.