fix: typing on IconComponent #110
Annotations
4 errors and 13 warnings
lint:
example/src/screens/UsageDifferentFontFamilies.tsx#L25
Type 'Icon<"search" | "repeat" | "link" | "at" | "body" | "code" | "map" | "menu" | "time" | "ellipse" | "filter" | "image" | "stop" | "text" | "push" | "scale" | "alert" | "checkbox" | "radio" | ... 1318 more ... | "woman-sharp", "ionicons">' is not assignable to type 'ComponentType<{ name: any; style?: any; color?: number | ColorValue | undefined; size?: number | undefined; }> | undefined'.
|
lint:
example/src/screens/UsageDifferentFontFamilies.tsx#L31
Type 'Icon<"style" | "android" | "web" | "search" | "repeat" | "anchor" | "link" | "input" | "article" | "code" | "details" | "html" | "label" | "map" | "menu" | "output" | "source" | "title" | ... 2215 more ... | "zoom-out-map", "material">' is not assignable to type 'ComponentType<{ name: any; style?: any; color?: number | ColorValue | undefined; size?: number | undefined; }> | undefined'.
|
lint:
example/src/screens/UsageDisabled.tsx#L18
Type 'Icon<"search" | "repeat" | "link" | "at" | "body" | "code" | "map" | "menu" | "time" | "ellipse" | "filter" | "image" | "stop" | "text" | "push" | "scale" | "alert" | "checkbox" | "radio" | ... 1318 more ... | "woman-sharp", "ionicons">' is not assignable to type 'ComponentType<{ name: any; style?: any; color?: number | ColorValue | undefined; size?: number | undefined; }> | undefined'.
|
lint
Process completed with exit code 2.
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint:
example/src/components/ScreenBody.tsx#L8
Inline style: { flex: 1, alignItems: 'center', padding: 20 }
|
lint:
example/src/screens/HomeScreen.tsx#L13
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “HomeScreen” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true
|
lint:
example/src/screens/HomeScreen.tsx#L18
Unexpected alert
|
lint:
example/src/screens/HomeScreen.tsx#L23
Unexpected alert
|
lint:
example/src/screens/HomeScreen.tsx#L36
Inline style: { rowGap: 10 }
|
lint:
example/src/screens/HomeScreen.tsx#L37
Inline style: { margin: 15 }
|
lint:
example/src/screens/TabScreenWithButtons.tsx#L21
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “TabScreenWithButtons” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true
|
lint:
example/src/screens/TabScreenWithButtons.tsx#L29
Unexpected alert
|
lint:
example/src/screens/TabScreenWithButtons.tsx#L32
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “TabScreenWithButtons” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true
|
lint:
example/src/screens/TabScreenWithButtons.tsx#L37
Unexpected alert
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|