From 5c0f8adc732f9d1144e1e1fcaf7e2c134c18390b Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Sun, 29 Dec 2024 11:49:30 -0800 Subject: [PATCH] fix: index bootstrap was gitignored --- apps/nativescript-hello-world/.gitignore | 1 + apps/nativescript-hello-world/src/index.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 apps/nativescript-hello-world/src/index.js diff --git a/apps/nativescript-hello-world/.gitignore b/apps/nativescript-hello-world/.gitignore index 40625b7..8b1dfcc 100644 --- a/apps/nativescript-hello-world/.gitignore +++ b/apps/nativescript-hello-world/.gitignore @@ -7,6 +7,7 @@ platforms/ *.js.map *.js !webpack.config.js +!src/index.js # Logs logs diff --git a/apps/nativescript-hello-world/src/index.js b/apps/nativescript-hello-world/src/index.js new file mode 100644 index 0000000..013939a --- /dev/null +++ b/apps/nativescript-hello-world/src/index.js @@ -0,0 +1,14 @@ +import { Application } from "@nativescript/core"; +import { render } from "@nativescript-community/solid-js"; +import { App } from "./app"; +import { document } from "dominative"; + +document.body.actionBarHidden = true; +document.body.appendChild(document.createElement("ContentView")); + +render(App, document.body.firstElementChild); + +const create = () => document; + +Application.run({ create }); +