@nativescript/template-blank-react-vision 8.6.0 → 8.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/template-blank-react-vision",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "Nativescript visionOS Starter with React",
5
5
  "author": "Jamie Birch <14055146+shirakaba@users.noreply.github.com>",
6
6
  "main": "src/app.ts",
@@ -1,7 +1,6 @@
1
1
  import { Dialogs } from '@nativescript/core';
2
2
  import { RouteProp } from '@react-navigation/core';
3
3
  import * as React from "react";
4
- import { StyleSheet } from "react-nativescript";
5
4
  import { FrameNavigationProp } from "react-nativescript-navigation";
6
5
 
7
6
  import { MainStackParamList } from "../NavigationParamList";
@@ -13,42 +12,30 @@ type ScreenOneProps = {
13
12
 
14
13
  export function ScreenOne({ navigation }: ScreenOneProps) {
15
14
  return (
16
- <flexboxLayout style={styles.container}>
15
+ <gridLayout rows="*,auto,auto,*,auto,100">
17
16
  <label
18
- className="fas"
19
- style={styles.text}
17
+ row="1"
18
+ className="fas text-3xl text-center leading-8"
19
+ height="40"
20
20
  >
21
21
  &#xf135; You're viewing screen one!
22
22
  </label>
23
23
  <button
24
- style={styles.button}
24
+ row="2"
25
+ className="ronded-full text-3xl p-5 my-5"
26
+ width="300"
25
27
  onTap={() => Dialogs.alert("Tapped!")}
26
28
  >
27
29
  Tap me for an alert
28
30
  </button>
29
31
  <button
30
- style={styles.button}
32
+ row="4"
33
+ className="ronded-full text-2xl p-5"
34
+ width="300"
31
35
  onTap={() => navigation.navigate("Two", { message: "Hello, world!" })}
32
36
  >
33
37
  Go to next screen
34
38
  </button>
35
- </flexboxLayout>
39
+ </gridLayout>
36
40
  );
37
41
  }
38
-
39
- const styles = StyleSheet.create({
40
- container: {
41
- height: "100%",
42
- flexDirection: "column",
43
- justifyContent: "center",
44
- },
45
- text: {
46
- textAlignment: "center",
47
- fontSize: 24,
48
- color: "black",
49
- },
50
- button: {
51
- fontSize: 24,
52
- color: "#2e6ddf",
53
- },
54
- });
@@ -1,6 +1,5 @@
1
1
  import { RouteProp } from '@react-navigation/core';
2
2
  import * as React from "react";
3
- import { StyleSheet } from "react-nativescript";
4
3
  import { FrameNavigationProp } from "react-nativescript-navigation";
5
4
 
6
5
  import { MainStackParamList } from "../NavigationParamList";
@@ -12,37 +11,21 @@ type ScreenTwoProps = {
12
11
 
13
12
  export function ScreenTwo({ navigation, route }: ScreenTwoProps) {
14
13
  return (
15
- <flexboxLayout style={styles.container}>
16
- <label style={styles.text}>
14
+ <gridLayout rows="*,auto,auto,*,auto,100">
15
+ <label row="1" className="text-3xl text-center">
17
16
  You're viewing screen two!
18
17
  </label>
19
- <label style={styles.text}>
18
+ <label row="2" className="text-3xl text-center my-5">
20
19
  Message: {route.params.message}
21
20
  </label>
22
21
  <button
23
- style={styles.button}
22
+ row="4"
23
+ className="ronded-full text-2xl p-5"
24
+ width="300"
24
25
  onTap={() => navigation.goBack()}
25
26
  >
26
27
  Go back
27
28
  </button>
28
- </flexboxLayout>
29
+ </gridLayout>
29
30
  );
30
31
  }
31
-
32
- const styles = StyleSheet.create({
33
- container: {
34
- height: "100%",
35
- flexDirection: "column",
36
- justifyContent: "center",
37
- backgroundColor: "yellow",
38
- },
39
- text: {
40
- textAlignment: "center",
41
- fontSize: 24,
42
- color: "black",
43
- },
44
- button: {
45
- fontSize: 24,
46
- color: "#2e6ddf",
47
- },
48
- });