Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Oct 3, 2022
1 parent 02f1b59 commit 130249b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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"
},
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "electron-react-boilerplate",
"productName": "WooCommerce POS",
"version": "1.0.0-alpha.51",
"version": "1.0.0-alpha.52",
"description": "A simple front-end for taking WooCommerce orders at the Point of Sale.",
"license": "MIT",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-inline'"
/>
<title>Hello Electron React!</title>
<title>WooCommerce POS</title>
</head>
<body>
<div id="root"></div>
Expand Down
23 changes: 13 additions & 10 deletions src/renderer/index.tsx
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);

0 comments on commit 130249b

Please sign in to comment.