Comments (2)
This should work:
$ tsc --outDir js -p ./ --noEmit false --target esnext
from twitterclone.
i get this after running that command:
⟩ tsc --outDir js -p ./ --noEmit false --target esnext
src/bottomTabs.tsx:21:33 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.
21 const routeName = props.route.state
~~~~~
src/bottomTabs.tsx:22:19 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.
22 ? props.route.state.routes[props.route.state.index].name
~~~~~
src/bottomTabs.tsx:22:44 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.
22 ? props.route.state.routes[props.route.state.index].name
~~~~~
src/drawerContent.tsx:25:42 - error TS2304: Cannot find name 'DrawerNavigationProp'.
25 type Props = DrawerContentComponentProps<DrawerNavigationProp>;
~~~~~~~~~~~~~~~~~~~~
src/drawerContent.tsx:44:11 - error TS2769: No overload matches this call.
Overload 1 of 2, '(props: Readonly<AnimateProps<ViewStyle, ViewProps>>): View', gave the following error.
Type '{ backgroundColor: string; transform: { translateX: Animated.Node<number>; }[]; }' is not assignable to type 'false | AnimateStyle<ViewStyle> | RegisteredStyle<AnimateStyle<ViewStyle>> | RecursiveArray<false | AnimateStyle<ViewStyle> | RegisteredStyle<...>> | readonly (false | ... 1 more ... | RegisteredStyle<...>)[]'.
The types returned by 'transform.pop()' are incompatible between these types.
Type '{ translateX: Animated.Node<number>; }' is not assignable to type 'PerpectiveTransform | RotateTransform | RotateXTransform | RotateYTransform | RotateZTransform | ... 6 more ... | SkewYTransform'.
Types of property 'translateX' are incompatible.
Type 'AnimatedNode<number>' is not assignable to type 'number'.
Overload 2 of 2, '(props: AnimateProps<ViewStyle, ViewProps>, context?: any): View', gave the following error.
Type '{ backgroundColor: string; transform: { translateX: Animated.Node<number>; }[]; }' is not assignable to type 'false | AnimateStyle<ViewStyle> | RegisteredStyle<AnimateStyle<ViewStyle>> | RecursiveArray<false | AnimateStyle<ViewStyle> | RegisteredStyle<...>> | readonly (false | ... 1 more ... | RegisteredStyle<...>)[]'.
The types returned by 'transform.pop()' are incompatible between these types.
Type '{ translateX: Animated.Node<number>; }' is not assignable to type 'PerpectiveTransform | RotateTransform | RotateXTransform | RotateYTransform | RotateZTransform | ... 6 more ... | SkewYTransform'.
Types of property 'translateX' are incompatible.
Type 'AnimatedNode<number>' is not assignable to type 'number'.
44 {
~
45 backgroundColor: paperTheme.colors.surface,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46 transform: [{ translateX }],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47 },
~~~~~~~~~~~
src/stack.tsx:85:35 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.
85 const routeName = route.state
~~~~~
src/stack.tsx:86:21 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.
86 ? route.state.routes[route.state.index].name
~~~~~
src/stack.tsx:86:40 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.
86 ? route.state.routes[route.state.index].name
~~~~~
Found 8 errors.
from twitterclone.
Related Issues (13)
- Uncaught SyntaxError: Invalid left-hand side in assignment when running in Expo browser
- Use API instead of data/index.ts
- EasingNode is not exported from react-native-reanimated HOT 3
- Dark mode is not getting saved HOT 1
- Switch to dark mode takes too long HOT 1
- Alignment with latest official react navigation v5 HOT 1
- How to upgrade react-native-paper to v4
- Old expo version v36.0.0 HOT 1
- Issue in Animation when using headerMode float
- Can you help to upgrade to use react-navigation 6?
- Web mode resets state on RTL toggle HOT 1
- How to navigate to screen from drawer. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitterclone.