@nativescript/template-blank-react 8.2.0 → 8.3.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/.npmrc ADDED
@@ -0,0 +1 @@
1
+ //registry.npmjs.org/:_authToken=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
package/README.md CHANGED
@@ -18,48 +18,29 @@ ns run android
18
18
  ns run ios
19
19
  ```
20
20
 
21
- > Note: This command will create a new NativeScript app that uses the latest version of this template published to [npm](https://www.npmjs.com/package/tns-template-blank-react).
21
+ > Note: This command will create a new NativeScript app that uses the latest version of this template published to [npm](https://www.npmjs.com/package/@nativescript/template-blank-react).
22
22
 
23
- <!--
24
- ## Quick start from the latest master
25
23
 
26
- ```sh
27
- ns create my-blank-react --template https://github.com/shirakaba/tns-template-blank-react/tarball/master
28
- ```
29
-
30
- ## Building from a local clone of the repo
31
-
32
- If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following:
24
+ **NB:** Please, keep in mind that the master branch may refer to dependencies that are not on NPM yet!
33
25
 
34
- ```
35
- # clone nativescript-app-templates monorepo locally
36
- git clone https://github.com/shirakaba/tns-template-blank-react.git
26
+ ## Walkthrough
37
27
 
38
- # create app template from local source (all templates are in the 'packages' subfolder of the monorepo)
39
- ns create my-blank-react --template tns-template-blank-react
28
+ Having created an app from this template, here's an introduction to how it works:
40
29
 
41
- cd my-blank-react
42
- npm install
30
+ ### Architecture
43
31
 
44
- ns preview
45
- # or
46
- ns run android
47
- # or
48
- ns run ios
49
- ```
50
- -->
32
+ - `src/app.ts`: The app entrypoint. It renders the MainStack component as the root component.
33
+ - `src/components/MainStack.tsx`: A React Navigation 5 [stack navigator](https://reactnavigation.org/docs/5.x/stack-navigator/) serving as the root component.
34
+ - `src/components/ScreenOne.tsx`, `src/components/ScreenTwo.tsx`: A couple of screens to navigate to.
35
+ - `src/NavigationParamList.tsx`: A record of the navigation params for each route in your app.
51
36
 
52
- **NB:** Please, keep in mind that the master branch may refer to dependencies that are not on NPM yet!
37
+ ### The basics
53
38
 
54
- ## Walkthrough
39
+ Learn React NativeScript itself by reading [its docs](https://react-nativescript.netlify.app/docs/introduction/introduction.html).
55
40
 
56
- ### Architecture
57
- There is a single blank component located in:
58
- - `/components/AppContainer.tsx` - sets up an empty page layout.
41
+ Learn how to navigate by referring to the React Navigation 5 [docs])https://reactnavigation.org/docs/5.x/getting-started) and refer to the [react-nativescript-navigation](https://github.com/shirakaba/react-nativescript-navigation/tree/master/react-nativescript-navigation) repo to see which options are supported for each navigator.
59
42
 
60
- **Home** page has the following components:
61
- - `<actionBar>` - It holds the title of the page.
62
- - `<gridLayout>` - The main page layout that should contains all the page content.
43
+ React libraries without a dependency on `react-dom` (like Redux) should work just fine in React NativeScript as long as the `react` version is compatible.
63
44
 
64
45
  ## Get Help
65
46
  The NativeScript framework has a vibrant community that can help when you run into problems.
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@nativescript/template-blank-react",
3
- "version": "8.2.0",
3
+ "version": "8.3.1",
4
4
  "description": "Blank template for NativeScript apps using React.",
5
5
  "author": "Jamie Birch <14055146+shirakaba@users.noreply.github.com>",
6
6
  "main": "src/app.ts",
7
7
  "scripts": {
8
- "postinstall": "patch-package",
9
- "type-check": "tsc --noEmit",
10
- "type-check:watch": "npm run type-check -- --watch"
8
+ "type-check": "tsc --noEmit"
11
9
  },
12
10
  "license": "Apache-2.0",
13
11
  "repository": {
@@ -24,11 +22,11 @@
24
22
  "files": [
25
23
  "App_Resources",
26
24
  "hooks",
27
- "patches",
28
25
  "src",
29
26
  "tools",
30
27
  "!tools/assets",
31
28
  ".editorconfig",
29
+ ".npmrc",
32
30
  "references.d.ts",
33
31
  "tsconfig.json"
34
32
  ],
@@ -41,18 +39,16 @@
41
39
  "template"
42
40
  ],
43
41
  "dependencies": {
44
- "@nativescript/core": "~8.2.0",
45
- "@react-navigation/core": "^5.15.3",
46
- "react": "~16.13.1",
47
- "react-nativescript": "^3.0.0-beta.1",
48
- "react-nativescript-navigation": "3.0.0-beta.2"
42
+ "@nativescript/core": "~8.3.5",
43
+ "react": "^16.14.0",
44
+ "react-nativescript": "^4.0.0",
45
+ "react-nativescript-navigation": "^4.0.0"
49
46
  },
50
47
  "devDependencies": {
51
- "@nativescript/types": "~8.2.0",
52
- "@nativescript/webpack": "~5.0.6",
53
- "@types/react": "16.9.34",
54
- "patch-package": "~6.4.7",
55
- "typescript": "~4.5.5"
48
+ "@nativescript/types": "~8.3.1",
49
+ "@nativescript/webpack": "~5.0.9",
50
+ "@types/react": "npm:types-react-without-jsx-intrinsics@^16.14.30",
51
+ "typescript": "^4.8.4"
56
52
  },
57
53
  "gitHead": "1350d382fb4b0ed4c6e9685df909518b2688e004",
58
54
  "readme": "NativeScript Application"
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A record of the navigation params for each route in your app.
3
+ */
4
+ export type MainStackParamList = {
5
+ One?: {};
6
+ Two: {
7
+ message: string;
8
+ };
9
+ };
package/src/app.ts CHANGED
@@ -1,20 +1,17 @@
1
- import * as React from 'react'
1
+ import * as React from 'react';
2
+ import * as ReactNativeScript from 'react-nativescript';
3
+ import { MainStack } from './components/MainStack';
2
4
 
3
- /* Controls react-nativescript log verbosity. true: all logs; false: only error logs. */
4
- Object.defineProperty(global, '__DEV__', { value: false })
5
+ // In NativeScript, the app.ts file is the entry point to your application. You
6
+ // can use this file to perform app-level initialization, but the primary
7
+ // purpose of the file is to pass control to the app’s first module.
5
8
 
6
- /*
7
- In NativeScript, the app.ts file is the entry point to your application.
8
- You can use this file to perform app-level initialization, but the primary
9
- purpose of the file is to pass control to the app’s first module.
10
- */
9
+ // Controls react-nativescript log verbosity.
10
+ // - true: all logs;
11
+ // - false: only error logs.
12
+ Object.defineProperty(global, '__DEV__', { value: false });
11
13
 
12
- import * as ReactNativeScript from 'react-nativescript'
13
- import { mainStackNavigator as AppContainer } from './components/Navigator'
14
+ ReactNativeScript.start(React.createElement(MainStack, {}, null));
14
15
 
15
- ReactNativeScript.start(React.createElement(AppContainer, {}, null))
16
-
17
- /*
18
- Do not place any code after the application has been started as it will not
19
- be executed on iOS.
20
- */
16
+ // Do not place any code after the application has been started as it will not
17
+ // be executed on iOS.
@@ -1,15 +1,19 @@
1
- import * as React from "react";
2
1
  import { BaseNavigationContainer } from '@react-navigation/core';
2
+ import * as React from "react";
3
3
  import { stackNavigatorFactory } from "react-nativescript-navigation";
4
- import { HomeScreen } from "./HomeScreen";
5
- import { SecondaryScreen } from "./SecondaryScreen";
4
+
5
+ import { ScreenOne } from "./ScreenOne";
6
+ import { ScreenTwo } from "./ScreenTwo";
6
7
 
7
8
  const StackNavigator = stackNavigatorFactory();
8
9
 
9
- export const mainStackNavigator = () => (
10
+ /**
11
+ * The main stack navigator for the whole app.
12
+ */
13
+ export const MainStack = () => (
10
14
  <BaseNavigationContainer>
11
15
  <StackNavigator.Navigator
12
- initialRouteName="Home"
16
+ initialRouteName="Screen One"
13
17
  screenOptions={{
14
18
  headerStyle: {
15
19
  backgroundColor: "white",
@@ -18,12 +22,12 @@ export const mainStackNavigator = () => (
18
22
  }}
19
23
  >
20
24
  <StackNavigator.Screen
21
- name="Home"
22
- component={HomeScreen}
25
+ name="Screen One"
26
+ component={ScreenOne}
23
27
  />
24
28
  <StackNavigator.Screen
25
- name="Secondary"
26
- component={SecondaryScreen}
29
+ name="Screen Two"
30
+ component={ScreenTwo}
27
31
  />
28
32
  </StackNavigator.Navigator>
29
33
  </BaseNavigationContainer>
@@ -1,23 +1,24 @@
1
- import * as React from "react";
2
- import { RouteProp } from '@react-navigation/core';
3
1
  import { Dialogs } from '@nativescript/core';
4
- import { FrameNavigationProp } from "react-nativescript-navigation";
2
+ import { RouteProp } from '@react-navigation/core';
3
+ import * as React from "react";
5
4
  import { StyleSheet } from "react-nativescript";
6
- import { MainStackParamList } from "./NavigationParamList";
5
+ import { FrameNavigationProp } from "react-nativescript-navigation";
7
6
 
8
- type HomeScreenProps = {
9
- route: RouteProp<MainStackParamList, "Home">,
10
- navigation: FrameNavigationProp<MainStackParamList, "Home">,
11
- }
7
+ import { MainStackParamList } from "../NavigationParamList";
8
+
9
+ type ScreenOneProps = {
10
+ route: RouteProp<MainStackParamList, "One">,
11
+ navigation: FrameNavigationProp<MainStackParamList, "One">,
12
+ };
12
13
 
13
- export function HomeScreen({ navigation }: HomeScreenProps) {
14
+ export function ScreenOne({ navigation }: ScreenOneProps) {
14
15
  return (
15
16
  <flexboxLayout style={styles.container}>
16
17
  <label
17
18
  className="fas"
18
19
  style={styles.text}
19
20
  >
20
- &#xf135; Hello World!
21
+ &#xf135; You're viewing screen one!
21
22
  </label>
22
23
  <button
23
24
  style={styles.button}
@@ -27,7 +28,7 @@ export function HomeScreen({ navigation }: HomeScreenProps) {
27
28
  </button>
28
29
  <button
29
30
  style={styles.button}
30
- onTap={() => navigation.navigate('Secondary')}
31
+ onTap={() => navigation.navigate("Two", { message: "Hello, world!" })}
31
32
  >
32
33
  Go to next screen
33
34
  </button>
@@ -50,4 +51,4 @@ const styles = StyleSheet.create({
50
51
  fontSize: 24,
51
52
  color: "#2e6ddf",
52
53
  },
53
- });
54
+ });
@@ -1,19 +1,23 @@
1
- import * as React from "react";
2
1
  import { RouteProp } from '@react-navigation/core';
3
- import { FrameNavigationProp } from "react-nativescript-navigation";
4
- import { MainStackParamList } from "./NavigationParamList";
2
+ import * as React from "react";
5
3
  import { StyleSheet } from "react-nativescript";
4
+ import { FrameNavigationProp } from "react-nativescript-navigation";
6
5
 
7
- type SecondaryScreenProps = {
8
- route: RouteProp<MainStackParamList, "Secondary">,
9
- navigation: FrameNavigationProp<MainStackParamList, "Secondary">,
10
- }
6
+ import { MainStackParamList } from "../NavigationParamList";
7
+
8
+ type ScreenTwoProps = {
9
+ route: RouteProp<MainStackParamList, "Two">,
10
+ navigation: FrameNavigationProp<MainStackParamList, "Two">,
11
+ };
11
12
 
12
- export function SecondaryScreen({ navigation }: SecondaryScreenProps) {
13
+ export function ScreenTwo({ navigation, route }: ScreenTwoProps) {
13
14
  return (
14
15
  <flexboxLayout style={styles.container}>
15
16
  <label style={styles.text}>
16
- You're viewing the secondary screen!
17
+ You're viewing screen two!
18
+ </label>
19
+ <label style={styles.text}>
20
+ Messsage: {route.params.message}
17
21
  </label>
18
22
  <button
19
23
  style={styles.button}
@@ -1,192 +0,0 @@
1
- diff --git a/node_modules/@types/react/index.d.ts b/node_modules/@types/react/index.d.ts
2
- index 72c43ea..c4271cc 100644
3
- --- a/node_modules/@types/react/index.d.ts
4
- +++ b/node_modules/@types/react/index.d.ts
5
- @@ -2963,186 +2963,8 @@ declare global {
6
- // tslint:disable-next-line:no-empty-interface
7
- interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> { }
8
-
9
- + // tslint:disable-next-line:no-empty-interface
10
- interface IntrinsicElements {
11
- - // HTML
12
- - a: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
13
- - abbr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
14
- - address: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
15
- - area: React.DetailedHTMLProps<React.AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>;
16
- - article: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
17
- - aside: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
18
- - audio: React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>;
19
- - b: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
20
- - base: React.DetailedHTMLProps<React.BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>;
21
- - bdi: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
22
- - bdo: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
23
- - big: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
24
- - blockquote: React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>;
25
- - body: React.DetailedHTMLProps<React.HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>;
26
- - br: React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
27
- - button: React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
28
- - canvas: React.DetailedHTMLProps<React.CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>;
29
- - caption: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
30
- - cite: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
31
- - code: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
32
- - col: React.DetailedHTMLProps<React.ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
33
- - colgroup: React.DetailedHTMLProps<React.ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
34
- - data: React.DetailedHTMLProps<React.DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>;
35
- - datalist: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>;
36
- - dd: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
37
- - del: React.DetailedHTMLProps<React.DelHTMLAttributes<HTMLElement>, HTMLElement>;
38
- - details: React.DetailedHTMLProps<React.DetailsHTMLAttributes<HTMLElement>, HTMLElement>;
39
- - dfn: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
40
- - dialog: React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>;
41
- - div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
42
- - dl: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement>;
43
- - dt: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
44
- - em: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
45
- - embed: React.DetailedHTMLProps<React.EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>;
46
- - fieldset: React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>;
47
- - figcaption: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
48
- - figure: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
49
- - footer: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
50
- - form: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
51
- - h1: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
52
- - h2: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
53
- - h3: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
54
- - h4: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
55
- - h5: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
56
- - h6: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
57
- - head: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadElement>, HTMLHeadElement>;
58
- - header: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
59
- - hgroup: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
60
- - hr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>;
61
- - html: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>;
62
- - i: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
63
- - iframe: React.DetailedHTMLProps<React.IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>;
64
- - img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
65
- - input: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
66
- - ins: React.DetailedHTMLProps<React.InsHTMLAttributes<HTMLModElement>, HTMLModElement>;
67
- - kbd: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
68
- - keygen: React.DetailedHTMLProps<React.KeygenHTMLAttributes<HTMLElement>, HTMLElement>;
69
- - label: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
70
- - legend: React.DetailedHTMLProps<React.HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>;
71
- - li: React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
72
- - link: React.DetailedHTMLProps<React.LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>;
73
- - main: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
74
- - map: React.DetailedHTMLProps<React.MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>;
75
- - mark: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
76
- - menu: React.DetailedHTMLProps<React.MenuHTMLAttributes<HTMLElement>, HTMLElement>;
77
- - menuitem: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
78
- - meta: React.DetailedHTMLProps<React.MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>;
79
- - meter: React.DetailedHTMLProps<React.MeterHTMLAttributes<HTMLElement>, HTMLElement>;
80
- - nav: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
81
- - noindex: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
82
- - noscript: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
83
- - object: React.DetailedHTMLProps<React.ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>;
84
- - ol: React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>;
85
- - optgroup: React.DetailedHTMLProps<React.OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>;
86
- - option: React.DetailedHTMLProps<React.OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>;
87
- - output: React.DetailedHTMLProps<React.OutputHTMLAttributes<HTMLElement>, HTMLElement>;
88
- - p: React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
89
- - param: React.DetailedHTMLProps<React.ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>;
90
- - picture: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
91
- - pre: React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>;
92
- - progress: React.DetailedHTMLProps<React.ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>;
93
- - q: React.DetailedHTMLProps<React.QuoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>;
94
- - rp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
95
- - rt: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
96
- - ruby: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
97
- - s: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
98
- - samp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
99
- - slot: React.DetailedHTMLProps<React.SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
100
- - script: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
101
- - section: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
102
- - select: React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
103
- - small: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
104
- - source: React.DetailedHTMLProps<React.SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>;
105
- - span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
106
- - strong: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
107
- - style: React.DetailedHTMLProps<React.StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>;
108
- - sub: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
109
- - summary: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
110
- - sup: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
111
- - table: React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
112
- - template: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTemplateElement>, HTMLTemplateElement>;
113
- - tbody: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
114
- - td: React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
115
- - textarea: React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
116
- - tfoot: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
117
- - th: React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>;
118
- - thead: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
119
- - time: React.DetailedHTMLProps<React.TimeHTMLAttributes<HTMLElement>, HTMLElement>;
120
- - title: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>;
121
- - tr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>;
122
- - track: React.DetailedHTMLProps<React.TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>;
123
- - u: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
124
- - ul: React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
125
- - "var": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
126
- - video: React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
127
- - wbr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
128
- - webview: React.DetailedHTMLProps<React.WebViewHTMLAttributes<HTMLWebViewElement>, HTMLWebViewElement>;
129
- -
130
- - // SVG
131
- - svg: React.SVGProps<SVGSVGElement>;
132
- -
133
- - animate: React.SVGProps<SVGElement>; // TODO: It is SVGAnimateElement but is not in TypeScript's lib.dom.d.ts for now.
134
- - animateMotion: React.SVGProps<SVGElement>;
135
- - animateTransform: React.SVGProps<SVGElement>; // TODO: It is SVGAnimateTransformElement but is not in TypeScript's lib.dom.d.ts for now.
136
- - circle: React.SVGProps<SVGCircleElement>;
137
- - clipPath: React.SVGProps<SVGClipPathElement>;
138
- - defs: React.SVGProps<SVGDefsElement>;
139
- - desc: React.SVGProps<SVGDescElement>;
140
- - ellipse: React.SVGProps<SVGEllipseElement>;
141
- - feBlend: React.SVGProps<SVGFEBlendElement>;
142
- - feColorMatrix: React.SVGProps<SVGFEColorMatrixElement>;
143
- - feComponentTransfer: React.SVGProps<SVGFEComponentTransferElement>;
144
- - feComposite: React.SVGProps<SVGFECompositeElement>;
145
- - feConvolveMatrix: React.SVGProps<SVGFEConvolveMatrixElement>;
146
- - feDiffuseLighting: React.SVGProps<SVGFEDiffuseLightingElement>;
147
- - feDisplacementMap: React.SVGProps<SVGFEDisplacementMapElement>;
148
- - feDistantLight: React.SVGProps<SVGFEDistantLightElement>;
149
- - feDropShadow: React.SVGProps<SVGFEDropShadowElement>;
150
- - feFlood: React.SVGProps<SVGFEFloodElement>;
151
- - feFuncA: React.SVGProps<SVGFEFuncAElement>;
152
- - feFuncB: React.SVGProps<SVGFEFuncBElement>;
153
- - feFuncG: React.SVGProps<SVGFEFuncGElement>;
154
- - feFuncR: React.SVGProps<SVGFEFuncRElement>;
155
- - feGaussianBlur: React.SVGProps<SVGFEGaussianBlurElement>;
156
- - feImage: React.SVGProps<SVGFEImageElement>;
157
- - feMerge: React.SVGProps<SVGFEMergeElement>;
158
- - feMergeNode: React.SVGProps<SVGFEMergeNodeElement>;
159
- - feMorphology: React.SVGProps<SVGFEMorphologyElement>;
160
- - feOffset: React.SVGProps<SVGFEOffsetElement>;
161
- - fePointLight: React.SVGProps<SVGFEPointLightElement>;
162
- - feSpecularLighting: React.SVGProps<SVGFESpecularLightingElement>;
163
- - feSpotLight: React.SVGProps<SVGFESpotLightElement>;
164
- - feTile: React.SVGProps<SVGFETileElement>;
165
- - feTurbulence: React.SVGProps<SVGFETurbulenceElement>;
166
- - filter: React.SVGProps<SVGFilterElement>;
167
- - foreignObject: React.SVGProps<SVGForeignObjectElement>;
168
- - g: React.SVGProps<SVGGElement>;
169
- - image: React.SVGProps<SVGImageElement>;
170
- - line: React.SVGProps<SVGLineElement>;
171
- - linearGradient: React.SVGProps<SVGLinearGradientElement>;
172
- - marker: React.SVGProps<SVGMarkerElement>;
173
- - mask: React.SVGProps<SVGMaskElement>;
174
- - metadata: React.SVGProps<SVGMetadataElement>;
175
- - mpath: React.SVGProps<SVGElement>;
176
- - path: React.SVGProps<SVGPathElement>;
177
- - pattern: React.SVGProps<SVGPatternElement>;
178
- - polygon: React.SVGProps<SVGPolygonElement>;
179
- - polyline: React.SVGProps<SVGPolylineElement>;
180
- - radialGradient: React.SVGProps<SVGRadialGradientElement>;
181
- - rect: React.SVGProps<SVGRectElement>;
182
- - stop: React.SVGProps<SVGStopElement>;
183
- - switch: React.SVGProps<SVGSwitchElement>;
184
- - symbol: React.SVGProps<SVGSymbolElement>;
185
- - text: React.SVGProps<SVGTextElement>;
186
- - textPath: React.SVGProps<SVGTextPathElement>;
187
- - tspan: React.SVGProps<SVGTSpanElement>;
188
- - use: React.SVGProps<SVGUseElement>;
189
- - view: React.SVGProps<SVGViewElement>;
190
- }
191
- }
192
- }
@@ -1,4 +0,0 @@
1
- export type MainStackParamList = {
2
- Home: {}
3
- Secondary: {}
4
- }