Skip to content

Commit 33733b5

Browse files
committed
[chore] Fix lint/ts warnings in example app
1 parent d026d54 commit 33733b5

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

example/metro.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
const { getDefaultConfig } = require("expo/metro-config");
33
const path = require("path");
44

5+
// eslint-disable-next-line no-undef
56
const defaultConfig = getDefaultConfig(__dirname);
67

78
const resolvers = {

example/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"android": "react-native run-android",
66
"ios": "react-native run-ios",
77
"web": "expo start --web",
8+
"build": "tsc --noEmit",
89
"lint": "eslint .",
910
"test": "jest"
1011
},

example/src/components/Router.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ interface RouterState {
6565
stack: React.ReactNode[];
6666
prevIndex: number;
6767
nextIndex: number;
68-
animValue: Animated.AnimatedInterpolation;
68+
animValue: Animated.AnimatedInterpolation<string | number>;
6969
transitionConfig: TransitionConfig | void;
7070
sharedElementsConfig: SharedElementsStrictConfig | void;
7171
sharedElementScreens: (ScreenTransitionContextOnSharedElementsUpdatedEvent | void)[];

example/src/tests/image/TestImage.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export class TestImage extends React.Component<PropsType> {
119119
</SharedElement>
120120
);
121121
const content = panZoom ? (
122+
// @ts-ignore Property children does not exist on ImageZoom
122123
<ImageZoom
123124
cropWidth={SIZES.max}
124125
cropHeight={SIZES.max}

0 commit comments

Comments
 (0)