@tarojs/rn-runner 3.6.11-alpha.0 → 3.6.12-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,6 @@ import Text from '@tarojs/components-rn/dist/components/Text';
62
62
  import Image from '@tarojs/components-rn/dist/components/Image';
63
63
  import { StyleSheet } from 'react-native';
64
64
  import { scalePx2dp } from '@tarojs/runtime-rn';
65
- import 'src/components/navbar/resolver';
66
65
  import { jsxs, jsx } from 'react/jsx-runtime';
67
66
 
68
67
  var iconBack = require('../assets/icon_back-541a82be.webp');
@@ -101,6 +100,8 @@ var _indexScssStyleSheet = StyleSheet.create({
101
100
  }
102
101
  });
103
102
 
103
+ console.log('rn resolve');
104
+
104
105
  var _styleSheet=_indexScssStyleSheet;console.log('isRn',true);function Navbar(props){var title=props.title,rightElement=props.rightElement;return jsxs(View,{style:_styleSheet["navbar"],children:[jsx(View,{style:_styleSheet["navbar-leftElement"],children:jsx(Image,{src:iconBack,onClick:function back(){return navigateBack();},style:_styleSheet["icon-back"]})}),jsx(View,{style:_styleSheet["navbar-title"],children:typeof title==='string'?jsx(Text,{style:_styleSheet["navbar-title-text"],children:title}):title}),jsx(View,{style:_styleSheet["navbar-rightElement"],children:rightElement})]});}
105
106
 
106
107
  export { Navbar as default };
@@ -156,7 +157,6 @@ import Text from '@tarojs/components-rn/dist/components/Text';
156
157
  import Image from '@tarojs/components-rn/dist/components/Image';
157
158
  import { StyleSheet } from 'react-native';
158
159
  import { scalePx2dp } from '@tarojs/runtime-rn';
159
- import 'src/components/navbar/resolver';
160
160
  import { jsxs, jsx } from 'react/jsx-runtime';
161
161
 
162
162
  var iconBack = require('../../assets/icon_back-541a82be.webp');
@@ -195,6 +195,8 @@ var _indexScssStyleSheet = StyleSheet.create({
195
195
  }
196
196
  });
197
197
 
198
+ console.log('rn resolve');
199
+
198
200
  var _styleSheet=_indexScssStyleSheet;console.log('isRn',true);function Navbar(props){var title=props.title,rightElement=props.rightElement;return jsxs(View,{style:_styleSheet["navbar"],children:[jsx(View,{style:_styleSheet["navbar-leftElement"],children:jsx(Image,{src:iconBack,onClick:function back(){return navigateBack();},style:_styleSheet["icon-back"]})}),jsx(View,{style:_styleSheet["navbar-title"],children:typeof title==='string'?jsx(Text,{style:_styleSheet["navbar-title-text"],children:title}):title}),jsx(View,{style:_styleSheet["navbar-rightElement"],children:rightElement})]});}
199
201
 
200
202
  export { Navbar as default };
@@ -1,55 +1,14 @@
1
1
  const path = require('path')
2
+ const { recursiveMerge } = require('@tarojs/helper')
3
+ const getConfig = require('./config/index')
2
4
 
3
5
  const appPath = path.resolve(__dirname, '.', '')
4
6
 
7
+ const _config = getConfig(recursiveMerge)
5
8
  const config = {
6
- entry: 'app',
7
- copy: { patterns: [], options: {} },
8
- sourceRoot: 'src',
9
- outputRoot: 'dist',
10
- platform: 'rn',
11
- framework: 'react',
12
- baseLevel: undefined,
13
- csso: undefined,
14
- sass: { options: {}, additionalData: '' },
15
- uglify: undefined,
16
- plugins: [],
17
- projectName: 'taroRnInit',
18
- env: { NODE_ENV: '"development"' },
19
- defineConstants: { __TEST__: '"RN测试静态常量"' },
20
- designWidth: 750,
21
- deviceRatio: { 640: 1.17, 750: 1, 828: 0.905 },
22
- terser: undefined,
23
- appName: '',
24
- output:
25
- {
26
- android: 'androidbundle/index.bundle',
27
- ios: 'iosbundle/main.bundle'
28
- },
29
- postcss:
30
- {
31
- options: {},
32
- scalable: true,
33
- pxtransform: { enable: true, config: {} }
34
- },
35
- less: { options: {}, additionalData: '' },
36
- stylus: { options: {}, additionalData: '' },
37
- EXPLORER_PATH: 'src',
38
- EXPLORER_SHELL: 'yarn run wb-bundle',
39
- sourceDir: '',
40
- isWatch: true,
41
- mode: 'development',
42
- modifyWebpackChain: [],
43
- modifyBuildAssets: [],
44
- modifyMiniConfigs: [],
45
- onBuildFinish: [],
46
- nodeModulesPath:
47
- path.resolve(__dirname, '../../../..', 'node_modules'),
48
- deviceType: 'android',
49
- port: undefined,
50
- buildAdapter: 'rn',
51
- globalObject: 'global',
52
- isBuildNativeComp: true
9
+ isBuildNativeComp: true,
10
+ ..._config,
11
+ ..._config.rn
53
12
  }
54
13
 
55
14
  export {
@@ -16,6 +16,7 @@ const config = {
16
16
  __TEST__: '"测试静态常量"'
17
17
  },
18
18
  alias: {
19
+ 'src': path.resolve(__dirname, '..', 'src/'),
19
20
  '@/components': path.resolve(__dirname, '..', 'src/components'),
20
21
  '@/utils': path.resolve(__dirname, '..', 'src/utils')
21
22
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/rn-runner",
3
- "version": "3.6.11-alpha.0",
3
+ "version": "3.6.12-alpha.0",
4
4
  "description": "ReactNative build tool for taro",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -30,15 +30,17 @@
30
30
  "fs-extra": "^8.0.1",
31
31
  "lodash": "^4.17.21",
32
32
  "rollup-plugin-image-file": "^1.0.2",
33
- "@tarojs/helper": "3.6.11-alpha.0",
34
- "@tarojs/rn-style-transformer": "3.6.11-alpha.0",
35
- "@tarojs/rn-supporter": "3.6.11-alpha.0",
36
- "@tarojs/rn-transformer": "3.6.11-alpha.0"
33
+ "@tarojs/helper": "3.6.12-alpha.0",
34
+ "@tarojs/rn-style-transformer": "3.6.12-alpha.0",
35
+ "@tarojs/rn-supporter": "3.6.12-alpha.0",
36
+ "@tarojs/rn-transformer": "3.6.12-alpha.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/core": "^7.14.5",
40
40
  "@babel/preset-env": "^7.14.5",
41
41
  "acorn": "^8.0.4",
42
+ "babel-plugin-global-define": "1.0.3",
43
+ "babel-plugin-jsx-attributes-array-to-object": "0.3.0",
42
44
  "expo": "~47.0.3",
43
45
  "expo-file-system": "~15.1.1",
44
46
  "jest": "^29.3.1",
@@ -51,7 +53,8 @@
51
53
  "react-test-renderer": "18.1.0",
52
54
  "rollup": "^2.79.0",
53
55
  "ts-jest": "^29.0.5",
54
- "typescript": "^4.7.4"
56
+ "typescript": "^4.7.4",
57
+ "babel-plugin-transform-react-jsx-to-rn-stylesheet": "3.6.12-alpha.0"
55
58
  },
56
59
  "scripts": {
57
60
  "build": "tsc",