create-disposabl-app 0.14.11 → 0.14.12
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.
package/dist/disposabl.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
8
8
|
import { Command, CommanderError } from "commander";
|
|
9
9
|
import * as p2 from "@clack/prompts";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "0.14.
|
|
11
|
+
var version = "0.14.12";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -31,11 +31,20 @@ export function HomeScreen() {
|
|
|
31
31
|
options={{
|
|
32
32
|
title: "Your app",
|
|
33
33
|
headerRight: () => (
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
<View style={{ flexDirection: "row", gap: 8 }}>
|
|
35
|
+
{docs && (
|
|
36
|
+
<GlassIconButton
|
|
37
|
+
label="Docs"
|
|
38
|
+
icon={{ ios: "book", android: "menu_book" }}
|
|
39
|
+
onPress={() => void openGuide("getting-started")}
|
|
40
|
+
/>
|
|
41
|
+
)}
|
|
42
|
+
<GlassIconButton
|
|
43
|
+
label="Settings"
|
|
44
|
+
icon={{ ios: "slider.horizontal.3", android: "tune" }}
|
|
45
|
+
onPress={() => router.push("/settings")}
|
|
46
|
+
/>
|
|
47
|
+
</View>
|
|
39
48
|
),
|
|
40
49
|
}}
|
|
41
50
|
/>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { openMobile } from "../helpers/mobile";
|
|
2
2
|
import { test } from "@e2e-dev/mobile";
|
|
3
3
|
import { expect } from "e2e";
|
|
4
|
+
import { docsEnabled } from "../../disposabl-kit/features";
|
|
4
5
|
|
|
5
6
|
test(
|
|
6
7
|
"mobile home renders",
|
|
@@ -8,5 +9,8 @@ test(
|
|
|
8
9
|
async ({ app, screen, device }) => {
|
|
9
10
|
await openMobile({ app, device, screen });
|
|
10
11
|
await expect(screen.getByText("Your app starts here.")).toBeVisible();
|
|
12
|
+
const docs = screen.getByRole("button", "Docs", { exact: true });
|
|
13
|
+
if (docsEnabled) await expect(docs).toBeVisible();
|
|
14
|
+
else await expect(docs).not.toBeVisible();
|
|
11
15
|
},
|
|
12
16
|
);
|