Skip to content

Commit 7df2012

Browse files
authored
chore: remove rn's, and update taro version (#2731)
* chore: 去掉rn相关,升级taro版本
1 parent ce66f75 commit 7df2012

File tree

6 files changed

+15203
-23127
lines changed

6 files changed

+15203
-23127
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@
130130
"@rollup/plugin-node-resolve": "15.2.3",
131131
"@rollup/plugin-typescript": "^11.1.6",
132132
"@swc/core": "^1.4.8",
133-
"@tarojs/components": "4.0.0-beta.138",
134-
"@tarojs/plugin-platform-alipay": "4.0.0-beta.138",
135-
"@tarojs/plugin-platform-weapp": "4.0.0-beta.138",
136-
"@tarojs/react": "4.0.0-beta.138",
137-
"@tarojs/taro": "4.0.0-beta.138",
133+
"@tarojs/components": "4.0.8-beta.0",
134+
"@tarojs/plugin-platform-alipay": "4.0.8-beta.0",
135+
"@tarojs/plugin-platform-weapp": "4.0.8-beta.0",
136+
"@tarojs/react": "4.0.8-beta.0",
137+
"@tarojs/taro": "4.0.8-beta.0",
138138
"@testing-library/jest-dom": "^6.4.2",
139139
"@testing-library/react": "^16.0.0",
140140
"@types/fs-extra": "^11.0.4",

packages/nutui-taro-demo/package.json

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -56,44 +56,42 @@
5656
"@dongdesign/inject-jd-platform-styles": "1.0.4",
5757
"@jdreact/jdreact-jsbundle-commonpack": "1.0.425",
5858
"@jdtaro/plugin-platform-jdhybrid": "0.2.1",
59-
"@jdtaro/plugin-platform-jdrn": "2.0.0-beta.0",
6059
"@jdtaro/taro-platform-jdharmony": "2.0.70",
61-
"@jdtaro/plugin-platform-jdharmony-cpp": "0.0.93",
60+
"@jdtaro/plugin-platform-jdharmony-cpp": "0.1.2-alpha.0",
6261
"@nutui/replace-icons": "^1.0.0",
6362
"@nutui/touch-emulator": "^1.0.0",
6463
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
65-
"@tarojs/components": "4.0.0-beta.138",
66-
"@tarojs/helper": "4.0.0-beta.138",
67-
"@tarojs/plugin-framework-react": "4.0.0-beta.138",
68-
"@tarojs/plugin-html": "4.0.0-beta.138",
69-
"@tarojs/plugin-platform-alipay": "4.0.0-beta.138",
70-
"@tarojs/plugin-platform-h5": "4.0.0-beta.138",
71-
"@tarojs/plugin-platform-jd": "4.0.0-beta.138",
72-
"@tarojs/plugin-platform-qq": "4.0.0-beta.138",
73-
"@tarojs/plugin-platform-swan": "4.0.0-beta.138",
74-
"@tarojs/plugin-platform-tt": "4.0.0-beta.138",
75-
"@tarojs/plugin-platform-weapp": "4.0.0-beta.138",
76-
"@tarojs/react": "4.0.0-beta.138",
77-
"@tarojs/router": "4.0.0-beta.138",
78-
"@tarojs/runtime": "4.0.0-beta.138",
79-
"@tarojs/shared": "4.0.0-beta.138",
80-
"@tarojs/taro": "4.0.0-beta.138",
81-
"@tarojs/taro-h5": "4.0.0-beta.138",
64+
"@tarojs/components": "4.0.8-beta.0",
65+
"@tarojs/helper": "4.0.8-beta.0",
66+
"@tarojs/plugin-framework-react": "4.0.8-beta.0",
67+
"@tarojs/plugin-html": "4.0.8-beta.0",
68+
"@tarojs/plugin-platform-alipay": "4.0.8-beta.0",
69+
"@tarojs/plugin-platform-h5": "4.0.8-beta.0",
70+
"@tarojs/plugin-platform-jd": "4.0.8-beta.0",
71+
"@tarojs/plugin-platform-qq": "4.0.8-beta.0",
72+
"@tarojs/plugin-platform-swan": "4.0.8-beta.0",
73+
"@tarojs/plugin-platform-tt": "4.0.8-beta.0",
74+
"@tarojs/plugin-platform-weapp": "4.0.8-beta.0",
75+
"@tarojs/react": "4.0.8-beta.0",
76+
"@tarojs/router": "4.0.8-beta.0",
77+
"@tarojs/runtime": "4.0.8-beta.0",
78+
"@tarojs/shared": "4.0.8-beta.0",
79+
"@tarojs/taro": "4.0.8-beta.0",
80+
"@tarojs/taro-h5": "4.0.8-beta.0",
8281
"babel-plugin-import": "^1.13.8",
8382
"lodash.isequal": "^4.5.0",
8483
"lodash.kebabcase": "^4.1.1",
8584
"react": "^18.2.0",
8685
"react-dom": "^18.2.0",
87-
"react-native": "0.72.3",
8886
"react-refresh": "^0.14.0",
8987
"react-transition-group": "^4.4.5"
9088
},
9189
"devDependencies": {
9290
"@babel/core": "^7.23.9",
93-
"@tarojs/cli": "4.0.0-beta.138",
94-
"@tarojs/plugin-platform-harmony-ets": "4.0.0-beta.138",
95-
"@tarojs/vite-runner": "4.0.0-beta.138",
96-
"@tarojs/webpack5-runner": "4.0.0-beta.138",
91+
"@tarojs/cli": "4.0.8-beta.0",
92+
"@tarojs/plugin-platform-harmony-ets": "4.0.8-beta.0",
93+
"@tarojs/vite-runner": "4.0.8-beta.0",
94+
"@tarojs/webpack5-runner": "4.0.8-beta.0",
9795
"@types/react": "^18.2.57",
9896
"@types/react-dom": "^18.2.19",
9997
"@types/react-router-dom": "^5.3.3",
@@ -103,9 +101,9 @@
103101
"@types/webpack-env": "^1.18.4",
104102
"@typescript-eslint/eslint-plugin": "^7.0.2",
105103
"@typescript-eslint/parser": "^7.0.2",
106-
"babel-preset-taro": "4.0.0-beta.138",
104+
"babel-preset-taro": "4.0.8-beta.0",
107105
"eslint": "^8.56.0",
108-
"eslint-config-taro": "4.0.0-beta.138",
106+
"eslint-config-taro": "4.0.8-beta.0",
109107
"eslint-plugin-import": "^2.29.1",
110108
"eslint-plugin-react": "^7.33.2",
111109
"eslint-plugin-react-hooks": "^4.6.0",
@@ -114,7 +112,6 @@
114112
"typescript": "^5.3.3"
115113
},
116114
"resolutions": {
117-
"react-native-webview": "13.6.3",
118115
"sass":"1.77.6"
119116
}
120117
}

packages/nutui-taro-demo/src/pages/index/index.tsx

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Taro from '@tarojs/taro'
2-
import { View, Image, Text, ScrollView, Button, Input, Video } from '@tarojs/components'
2+
import { View, Image, Text, ScrollView } from '@tarojs/components'
33
import pkg from '@/packages/../config.json'
44
import packageJson from '@/packages/../../package.json'
55
import './index.scss'
@@ -8,10 +8,6 @@ import './index.scss'
88
const navs = pkg.nav
99
// console.log(navs)
1010

11-
12-
// hack taro load button xml
13-
console.log(Button, Input, Video )
14-
1511
// try {
1612
// console.log('xxx', Schema)
1713
// } catch (e) {}
@@ -39,37 +35,39 @@ const Index = () => {
3935
}
4036

4137
return (
42-
<ScrollView className='index'>
43-
<View className='index-header'>
38+
<ScrollView className="index">
39+
<View className="index-header">
4440
<Image
45-
className='index-header-img'
46-
src='https://img14.360buyimg.com/imagetools/jfs/t1/117879/25/28831/6279/6329723bE66715a2f/5f099b8feca9e8cc.png'
41+
className="index-header-img"
42+
src="https://img14.360buyimg.com/imagetools/jfs/t1/117879/25/28831/6279/6329723bE66715a2f/5f099b8feca9e8cc.png"
4743
/>
48-
<View className='index-header-info'>
49-
<View className='index-header-info-h1'>NutUI React</View>
50-
<View className='index-header-info-p'>
44+
<View className="index-header-info">
45+
<View className="index-header-info-h1">NutUI React</View>
46+
<View className="index-header-info-p">
5147
京东风格的轻量级小程序组件库 React 版
5248
</View>
53-
<View className='index-header-info-p'>
54-
<Text className='index-header-info-text'>v{packageJson?.version}</Text>
49+
<View className="index-header-info-p">
50+
<Text className="index-header-info-text">
51+
v{packageJson?.version}
52+
</Text>
5553
</View>
5654
</View>
5755
</View>
58-
<View className='index-components'>
56+
<View className="index-components">
5957
{navs.map((nav) => (
60-
<View key={nav.enName} className='index-components-item'>
58+
<View key={nav.enName} className="index-components-item">
6159
{nav.enName === 'dataentry' ? null : (
62-
<View className='index-components-item-title'>{nav.name}</View>
60+
<View className="index-components-item-title">{nav.name}</View>
6361
)}
64-
<View className='index-components-sublist'>
62+
<View className="index-components-sublist">
6563
{nav.packages.map((com) =>
6664
com.show && com.taro && com.version === '3.0.0' ? (
6765
<View
6866
key={com.name}
69-
className='index-components-sublist-item'
67+
className="index-components-sublist-item"
7068
>
7169
<View
72-
className='index-components-sublist-item-content'
70+
className="index-components-sublist-item-content"
7371
key={com.name}
7472
onClick={() => gotoNext(com.name, nav.enName)}
7573
>

0 commit comments

Comments
 (0)