-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@wcpos/app-electron", | ||
"productName": "WooCommerce POS", | ||
"description": "Electron app for WooCommerce POS", | ||
"version": "1.0.0-alpha.51", | ||
"version": "1.0.0-alpha.52", | ||
"private": true, | ||
"author": "kilbot <[email protected]>", | ||
"contributors": [ | ||
|
@@ -93,7 +93,7 @@ | |
"fs-extra": "^10.1.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-native-reanimated": "~2.9.1", | ||
"react-native-reanimated": "2.6.0", | ||
"react-native-web": "~0.18.9", | ||
"update-electron-app": "^2.0.1" | ||
}, | ||
|
@@ -104,8 +104,8 @@ | |
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.4.0", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/jest": "^29.1.0", | ||
"@types/node": "18.7.23", | ||
"@types/jest": "^29.1.1", | ||
"@types/node": "18.8.0", | ||
"@types/react": "^18.0.21", | ||
"@types/react-dom": "^18.0.6", | ||
"@types/react-test-renderer": "^18.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
import * as React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
// import { render } from 'react-dom'; | ||
// import { createRoot } from 'react-dom/client'; | ||
import { render } from 'react-dom'; | ||
import './app.global.css'; | ||
import App from '@wcpos/core'; | ||
|
||
// FIXME need reanimated update, see https://github.com/software-mansion/react-native-reanimated/issues/3355 | ||
window._frameTimestamp = null; | ||
|
||
const container = document.getElementById('root'); | ||
const root = createRoot(container!); // createRoot(container!) if you use TypeScript | ||
root.render(<App />); | ||
|
||
// render( | ||
// <React.StrictMode> | ||
// <App /> | ||
// </React.StrictMode>, | ||
// document.getElementById('root') | ||
// ); | ||
/** | ||
* @TODO - when I use conconcurrent mode, the product list re-renders many times | ||
* It's possible that flashlist or recyclelistview is not compatible with concurrent mode? | ||
*/ | ||
// const root = createRoot(container!); // createRoot(container!) if you use TypeScript | ||
// root.render(<App />); | ||
|
||
/** | ||
* Fallback to React 17 render until expo updates explicitly to concurrent mode | ||
*/ | ||
render(<App />, container); |