Skip to content

Commit 28741c5

Browse files
Copilotanupriya13
andcommitted
Fix React version compatibility and TypeScript errors in Calculator samples
Co-authored-by: anupriya13 <54227869+anupriya13@users.noreply.github.com>
1 parent 337fd47 commit 28741c5

9 files changed

Lines changed: 1616 additions & 1491 deletions

File tree

samples/Calculator/cppwinrt/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,4 @@ export default class App extends React.Component {
271271
}
272272
}
273273

274-
AppRegistry.registerComponent('Bootstrap', () => Bootstrap);
274+
AppRegistry.registerComponent('Bootstrap', () => App);

samples/Calculator/cppwinrt/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"windows": "npx @react-native-community/cli run-windows"
1212
},
1313
"dependencies": {
14-
"react": "19.0.0",
14+
"react": "19.1.1",
1515
"react-native": "0.80.2",
1616
"react-native-windows": "0.80.0-preview.1"
1717
},
@@ -27,14 +27,15 @@
2727
"@react-native/metro-config": "0.80.2",
2828
"@react-native/typescript-config": "0.80.2",
2929
"@types/jest": "^29.5.13",
30-
"@types/react": "^19.0.0",
31-
"@types/react-test-renderer": "^19.0.0",
30+
"@types/react": "^19.1.9",
31+
"@types/react-test-renderer": "^19.1.0",
3232
"eslint": "^8.19.0",
3333
"jest": "^29.6.3",
3434
"prettier": "2.8.8",
35-
"react-test-renderer": "19.0.0",
35+
"react-test-renderer": "19.1.1",
3636
"typescript": "5.0.4",
37-
"metro-config": "^0.82.4"
37+
"metro-config": "^0.82.4",
38+
"tslib": "^2.8.1"
3839
},
3940
"engines": {
4041
"node": ">=18"

samples/Calculator/cppwinrt/yarn.lock

Lines changed: 546 additions & 397 deletions
Large diffs are not rendered by default.

samples/Calculator/csharp/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,4 @@ export default class App extends React.Component {
271271
}
272272
}
273273

274-
AppRegistry.registerComponent('Bootstrap', () => Bootstrap);
274+
AppRegistry.registerComponent('Bootstrap', () => App);

samples/Calculator/csharp/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"windows": "npx @react-native-community/cli run-windows"
1212
},
1313
"dependencies": {
14-
"react": "19.0.0",
14+
"react": "19.1.1",
1515
"react-native": "0.80.2",
1616
"react-native-windows": "0.80.0-preview.1"
1717
},
@@ -27,14 +27,15 @@
2727
"@react-native/metro-config": "0.80.2",
2828
"@react-native/typescript-config": "0.80.2",
2929
"@types/jest": "^29.5.13",
30-
"@types/react": "^19.0.0",
31-
"@types/react-test-renderer": "^19.0.0",
30+
"@types/react": "^19.1.9",
31+
"@types/react-test-renderer": "^19.1.0",
3232
"eslint": "^8.19.0",
3333
"jest": "^29.6.3",
3434
"prettier": "2.8.8",
35-
"react-test-renderer": "19.0.0",
35+
"react-test-renderer": "19.1.1",
3636
"typescript": "5.0.4",
37-
"metro-config": "^0.82.4"
37+
"metro-config": "^0.82.4",
38+
"tslib": "^2.8.1"
3839
},
3940
"engines": {
4041
"node": ">=18"

0 commit comments

Comments
 (0)