Skip to content

Commit aaa932a

Browse files
committedJul 6, 2019
fix(alita): HelloWorldExpoWP 无法运行bug
1 parent 81650a9 commit aaa932a

File tree

6 files changed

+60
-55
lines changed

6 files changed

+60
-55
lines changed
 
Binary file not shown.

‎examples/HelloWorldExpoWP/app.json

+37-38
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,39 @@
11
{
2-
"pages": [
3-
"src/a/index",
4-
"src/c/index",
5-
"src/e/index",
6-
"src/b/index",
7-
"src/d/index"
8-
],
9-
"window": {
10-
"backgroundTextStyle": "light",
11-
"backgroundColor": "#E9E9E9",
12-
"enablePullDownRefresh": false,
13-
"navigationBarTitleText": "HelloWorld",
14-
"navigationBarBackgroundColor": "#eee",
15-
"navigationBarTextStyle": "black"
16-
},
17-
"tabBar": {
18-
"list": [
19-
{
20-
"pagePath": "src/a/index",
21-
"text": "常见写法",
22-
"iconPath": "/assets/faxian.png",
23-
"selectedIconPath": "/assets/faxianCurrent.png"
24-
},
25-
{
26-
"pagePath": "src/b/index",
27-
"text": "RN组件",
28-
"iconPath": "/assets/comp_desel.png",
29-
"selectedIconPath": "/assets/comp_sel.png"
30-
},
31-
{
32-
"pagePath": "src/d/index",
33-
"text": "常见动画",
34-
"iconPath": "/assets/my.png",
35-
"selectedIconPath": "/assets/myCurrent.png"
36-
}
37-
]
38-
},
39-
"sitemapLocation": "sitemap.json"
2+
"pages": [
3+
"src/a/index",
4+
"src/c/index",
5+
"src/e/index",
6+
"src/b/index",
7+
"src/d/index"
8+
],
9+
"window": {
10+
"backgroundTextStyle": "light",
11+
"backgroundColor": "#E9E9E9",
12+
"enablePullDownRefresh": false,
13+
"navigationBarTitleText": "HelloWorld",
14+
"navigationBarBackgroundColor": "#eee",
15+
"navigationBarTextStyle": "black"
16+
},
17+
"tabBar": {
18+
"list": [
19+
{
20+
"pagePath": "src/a/index",
21+
"text": "常见写法",
22+
"iconPath": "/assets/faxian.png",
23+
"selectedIconPath": "/assets/faxianCurrent.png"
24+
},
25+
{
26+
"pagePath": "src/b/index",
27+
"text": "RN组件",
28+
"iconPath": "/assets/comp_desel.png",
29+
"selectedIconPath": "/assets/comp_sel.png"
30+
},
31+
{
32+
"pagePath": "src/d/index",
33+
"text": "常见动画",
34+
"iconPath": "/assets/my.png",
35+
"selectedIconPath": "/assets/myCurrent.png"
36+
}
37+
]
38+
}
4039
}

‎examples/HelloWorldExpoWP/package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
"dependencies": {
44
"@areslabs/hello-wx": "^1.0.2",
55
"@areslabs/hi-wx": "^1.0.2",
6+
"@areslabs/wx-router": "^1.0.0",
67
"@areslabs/wx-animated": "^1.0.12",
78
"@areslabs/wx-prop-types": "^1.0.0",
8-
"@areslabs/wx-react": "beta",
9-
"@areslabs/wx-react-native": "^1.0.0",
10-
"@areslabs/wx-router": "beta",
11-
"@babel/plugin-transform-runtime": "^7.5.0"
9+
"@areslabs/wx-react": "^1.0.0",
10+
"@areslabs/wx-react-native": "^1.0.0"
1211
}
13-
}
12+
}

‎examples/HelloWorldExpoWP/project.config.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
},
1414
"compileType": "miniprogram",
1515
"libVersion": "2.2.2",
16-
"appid": "wxf57130e597c02e3c",
17-
"projectname": "miniprogram-test-1",
16+
"appid": "wx67a52214b440b81b",
17+
"projectname": "tmptmp",
1818
"isGameTourist": false,
19-
"simulatorType": "wechat",
20-
"simulatorPluginLibVersion": {},
2119
"condition": {
2220
"search": {
2321
"current": -1,

‎examples/HelloWorldExpoWP/sitemap.json

-7
This file was deleted.

‎examples/HelloWorldExpoWP/src/a/index.comp.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
import _extends from "@babel/runtime/helpers/extends"
1+
function _extends() {
2+
_extends =
3+
Object.assign ||
4+
function(target) {
5+
for (var i = 1; i < arguments.length; i++) {
6+
var source = arguments[i]
7+
for (var key in source) {
8+
if (Object.prototype.hasOwnProperty.call(source, key)) {
9+
target[key] = source[key]
10+
}
11+
}
12+
}
13+
return target
14+
}
15+
return _extends.apply(this, arguments)
16+
}
17+
218
import regeneratorRuntime from "@areslabs/wx-react/regeneratorRuntime"
319
import React, { Component, h } from "@areslabs/wx-react"
420
import PropTypes from "@areslabs/wx-prop-types"

0 commit comments

Comments
 (0)