-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate app/react-native to typescript #6448
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://monorepo-git-react-native-typescript.storybook.now.sh |
f255d2d
to
ea0c8a0
Compare
Codecov Report
@@ Coverage Diff @@
## next #6448 +/- ##
==========================================
- Coverage 41.09% 41.03% -0.07%
==========================================
Files 612 613 +1
Lines 8444 8457 +13
Branches 411 437 +26
==========================================
Hits 3470 3470
- Misses 4919 4932 +13
Partials 55 55
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## next #6448 +/- ##
==========================================
- Coverage 40.81% 40.79% -0.02%
==========================================
Files 616 616
Lines 8519 8525 +6
Branches 535 595 +60
==========================================
+ Hits 3477 3478 +1
- Misses 4950 4955 +5
Partials 92 92
Continue to review full report at Codecov.
|
}; | ||
} | ||
interface Props { | ||
initialUiVisible: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to ea0c8a0#diff-46b88ac54083f1f8e54a54e6f4a3088fL77
initialUiVisible
is optional so maybe initialUiVisible?: boolean;
is more accurate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
@@ -1,8 +1,7 @@ | |||
import React, { PureComponent } from 'react'; | |||
import { View, SafeAreaView, StyleSheet } from 'react-native'; | |||
// @ts-ignore TODO: add types for react-native-swipe-gestures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or add a typings.d.ts with declare module 'react-native-swipe-gestures'
if types are not available for this lib 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in 29ddf5a
`navigator.userAgent` is not defined in react-native
`document.location` is not defined in react-native. Fixes #6512
Issue: #5030
What I did
Migrate app/react-native to typescript. Most types have been annotated properly except for the data we get from client-api.