cordova-react-vite 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/execute.js +3 -2
  2. package/package.json +1 -1
package/execute.js CHANGED
@@ -63,13 +63,14 @@ function main() {
63
63
  // ---- overwrite App.tsx ----
64
64
  const appTsxPath = path.join(rootPath, "react", "src", "App.tsx");
65
65
  const appTsxContent = `import { FC } from "react";
66
+ import { FC } from "react";
66
67
  import { AIOCordovaComponent, AIOCordova } from "aio-cordova";
67
68
 
68
69
  const App: FC = () => {
69
70
  return (
70
71
  <AIOCordovaComponent
71
72
  startWindows={() => <WindowsApp />}
72
- startAndroid={(aioCordova) => <AndroidApp aioCordova={aioCordova} />}
73
+ startAndroid={(aioCordova) => <AndroidApp cordova={aioCordova} />}
73
74
  />
74
75
  )
75
76
  }
@@ -78,7 +79,7 @@ export default App;
78
79
  const WindowsApp: FC = () => {
79
80
  return null;
80
81
  }
81
- const AndroidApp: FC = (inst: AIOCordova) => {
82
+ const AndroidApp: FC<{cordova:AIOCordova}> = ({cordova}) => {
82
83
  return null;
83
84
  }
84
85
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-react-vite",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "CLI to create a full React + Vite + Cordova project with Android platform",
5
5
  "main": "execute.js",
6
6
  "bin": {