Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

feat: add drawer navigator integration #43

Merged
merged 1 commit into from
Aug 6, 2019
Merged

feat: add drawer navigator integration #43

merged 1 commit into from
Aug 6, 2019

Conversation

satya164
Copy link
Member

@satya164 satya164 commented Aug 5, 2019

No description provided.

@codecov-io
Copy link

codecov-io commented Aug 5, 2019

Codecov Report

Merging #43 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
+ Coverage   93.81%   93.83%   +0.01%     
==========================================
  Files          21       21              
  Lines         372      373       +1     
  Branches       93       93              
==========================================
+ Hits          349      350       +1     
  Misses         22       22              
  Partials        1        1
Impacted Files Coverage Δ
packages/core/src/NavigationContext.tsx 100% <ø> (ø) ⬆️
packages/core/src/BaseActions.tsx 60% <ø> (ø) ⬆️
packages/core/src/SceneView.tsx 93.33% <ø> (ø) ⬆️
packages/core/src/useNavigationBuilder.tsx 100% <100%> (ø) ⬆️
packages/core/src/useNavigationCache.tsx 100% <100%> (ø) ⬆️
packages/core/src/useDescriptors.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1591a1d...694453e. Read the comment docs.

@osdnk
Copy link
Member

osdnk commented Aug 5, 2019

same #42 (review)

Copy link
Member

@osdnk osdnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lovely!

@@ -0,0 +1,117 @@
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything for this point is copied right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, the only thing I have changed are types + replaced onDrawerX callbacks with events.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, I also added DrawerRouter (second file from last)

"@types/react-native": "^0.60.2",
"react": "16.8.3",
"react-native": "^0.59.8",
"react-native-gesture-handler": "^1.3.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why it's dev dep?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically so that tools like typescript and eslint will resolve it. similar to how we have it in tab view. in this monorepo, it'll be hoisted to top

@@ -378,7 +395,7 @@ export type RouteConfig<
| ScreenOptions
| ((props: {
route: RouteProp<ParamList, RouteName>;
navigation: NavigationHelpersCommon<ParamList>;
navigation: any;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screens receive a more complex navigation type (as in the README), and it's not really possible to type it properly here. that's why it's any. users need to type it manually like in README.

@osdnk osdnk merged commit c5560c0 into master Aug 6, 2019
@osdnk osdnk deleted the @satya164/drawer branch August 6, 2019 13:29
satya164 added a commit that referenced this pull request Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants