@tarojs/rn-style-transformer 3.6.0-canary.8 → 3.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/rn-style-transformer",
3
- "version": "3.6.0-canary.8",
3
+ "version": "3.6.0",
4
4
  "description": "提供Taro RN 统一处理样式文件能力",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -27,11 +27,11 @@
27
27
  "sass": "1.37.5",
28
28
  "stylelint": "^14.9.1",
29
29
  "stylus": "^0.55.0",
30
- "@tarojs/helper": "3.6.0-canary.8",
31
- "postcss-pxtransform": "3.6.0-canary.8",
32
- "stylelint-config-taro-rn": "3.6.0-canary.8",
33
- "stylelint-taro-rn": "3.6.0-canary.8",
34
- "taro-css-to-react-native": "3.6.0-canary.8"
30
+ "@tarojs/helper": "3.6.0",
31
+ "postcss-pxtransform": "3.6.0",
32
+ "stylelint-config-taro-rn": "3.6.0",
33
+ "stylelint-taro-rn": "3.6.0",
34
+ "taro-css-to-react-native": "3.6.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "postcss": "^8.4.18"
@@ -198,8 +198,8 @@ interface RNConfig {
198
198
  }
199
199
 
200
200
  export interface Config {
201
- designWidth?: number
202
- deviceRatio?: { [key: number]: number }
201
+ designWidth?: number | ((size: number) => number)
202
+ deviceRatio?: Record<string, number>
203
203
  sass?: SassGlobalConfig
204
204
  alias?: Record<string, string>
205
205
  rn: RNConfig