Skip to content

Commit 86a3596

Browse files
authored
fix(Windows): Support for 0.63 (#216)
1 parent 20e2ca0 commit 86a3596

24 files changed

+388
-207
lines changed

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"react": "~16.8.6 || ~16.9.0 || ~16.11.0 || ~16.13.1",
1717
"react-native": "^0.60.6 || ^0.61.5 || ^0.62.2 || ^0.63.2 || 1000.0.0",
1818
"react-native-macos": "^0.60.0 || ^0.61.0 || ^0.62.0",
19-
"react-native-windows": "^0.62.0"
19+
"react-native-windows": "^0.62.0 || ^0.63.0"
2020
},
2121
"devDependencies": {
2222
"@babel/core": "^7.0.0",

example/windows/ReactTestAppTests/ManifestTests.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//
2+
// Copyright (c) Microsoft Corporation
3+
//
4+
// This source code is licensed under the MIT license found in the
5+
// LICENSE file in the root directory of this source tree.
6+
//
7+
18
#include "pch.h"
29

310
#include <CppUnitTest.h>

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,16 @@
4646
"yargs": "^16.0.0"
4747
},
4848
"peerDependencies": {
49+
"mustache": "^4.0.0",
4950
"react": "~16.8.6 || ~16.9.0 || ~16.11.0 || ~16.13.1",
5051
"react-native": "^0.60.6 || ^0.61.5 || ^0.62.2 || ^0.63.2 || 1000.0.0",
5152
"react-native-macos": "^0.60.0 || ^0.61.0 || ^0.62.0",
52-
"react-native-windows": "^0.62.0"
53+
"react-native-windows": "^0.62.0 || ^0.63.0"
5354
},
5455
"peerDependenciesMeta": {
56+
"mustache": {
57+
"optional": true
58+
},
5559
"react-native-macos": {
5660
"optional": true
5761
},
@@ -62,9 +66,10 @@
6266
"devDependencies": {
6367
"@babel/core": "^7.0.0",
6468
"@types/jest": "^26.0.0",
69+
"@types/mustache": "^4.0.0",
6570
"@types/node": "^12.0.0",
6671
"eslint": "^7.9.0",
67-
"eslint-plugin-jest": "^24.0.1",
72+
"eslint-plugin-jest": "^24.0.0",
6873
"eslint-plugin-prettier": "^3.1.4",
6974
"eslint-plugin-react": "^7.20.6",
7075
"jest": "^26.4.2",

plopfile.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
/**
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
7-
8-
const chalk = require("chalk");
1+
//
2+
// Copyright (c) Microsoft Corporation
3+
//
4+
// This source code is licensed under the MIT license found in the
5+
// LICENSE file in the root directory of this source tree.
6+
//
97

108
/**
119
* Returns whether the specified package is installed.
@@ -70,6 +68,7 @@ module.exports = (plop) => {
7068
return [];
7169
}
7270

71+
const chalk = require("chalk");
7372
const path = require("path");
7473

7574
const { name, platforms } = answers;
@@ -347,8 +346,9 @@ module.exports = (plop) => {
347346
}
348347
} else {
349348
console.warn(
350-
chalk.yellow("[WARN] ") +
351-
"Cannot find module 'react-native-macos'; skipping macOS target"
349+
`${chalk.yellow(
350+
"[WARN]"
351+
)} Cannot find module 'react-native-macos'; skipping macOS target`
352352
);
353353
}
354354
}
@@ -378,8 +378,9 @@ module.exports = (plop) => {
378378
}
379379
} else {
380380
console.warn(
381-
chalk.yellow("[WARN] ") +
382-
"Cannot find module 'react-native-windows'; skipping Windows target"
381+
`${chalk.yellow(
382+
"[WARN]"
383+
)} Cannot find module 'react-native-windows'; skipping Windows target`
383384
);
384385
}
385386
}

windows/ReactTestApp/App.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//
2+
// Copyright (c) Microsoft Corporation
3+
//
4+
// This source code is licensed under the MIT license found in the
5+
// LICENSE file in the root directory of this source tree.
6+
//
7+
18
#include "pch.h"
29

310
#include "App.h"

windows/ReactTestApp/App.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//
2+
// Copyright (c) Microsoft Corporation
3+
//
4+
// This source code is licensed under the MIT license found in the
5+
// LICENSE file in the root directory of this source tree.
6+
//
7+
18
#pragma once
29

310
#include "App.xaml.g.h"

windows/ReactTestApp/App.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:local="using:ReactTestApp">
6-
76
</Application>

windows/ReactTestApp/MainPage.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//
2+
// Copyright (c) Microsoft Corporation
3+
//
4+
// This source code is licensed under the MIT license found in the
5+
// LICENSE file in the root directory of this source tree.
6+
//
7+
18
#include "pch.h"
29

310
#include "MainPage.h"

windows/ReactTestApp/MainPage.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//
2+
// Copyright (c) Microsoft Corporation
3+
//
4+
// This source code is licensed under the MIT license found in the
5+
// LICENSE file in the root directory of this source tree.
6+
//
7+
18
#pragma once
29

310
#include <any>

windows/ReactTestApp/MainPage.idl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
namespace ReactTestApp
32
{
43
[default_interface] runtimeclass MainPage : Windows.UI.Xaml.Controls.Page

0 commit comments

Comments
 (0)