Skip to content

refactor!: drop independent prop in favor of a wrapper component#10907

Merged
satya164 merged 1 commit into@satya164/navigation-in-childfrom
@satya164/navigation-independent-tree
Oct 11, 2022
Merged

refactor!: drop independent prop in favor of a wrapper component#10907
satya164 merged 1 commit into@satya164/navigation-in-childfrom
@satya164/navigation-independent-tree

Conversation

@satya164
Copy link
Copy Markdown
Member

@satya164 satya164 commented Oct 4, 2022

This drops the independent prop from the container in favor of a component. In case of cases such as mini-apps, this allows the parent app to disconnect the child navigation tree from itself.

Another reason is that a lot of newbies added independent prop to avoid error and got confused when nested navigation didn't work. By moving it into a component and making it harder to do it accidentally, maybe this can be avoided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 4, 2022

The Expo app for the example from this branch is ready!

expo.dev/@react-navigation/react-navigation-example?release-channel=pr-10907

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 4, 2022

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.29%. Comparing base (6fa3de4) to head (24ceac7).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                        Coverage Diff                        @@
##           @satya164/navigation-in-child   #10907      +/-   ##
=================================================================
+ Coverage                          75.27%   75.29%   +0.02%     
=================================================================
  Files                                168      171       +3     
  Lines                               5173     5178       +5     
  Branches                            2005     2004       -1     
=================================================================
+ Hits                                3894     3899       +5     
  Misses                              1239     1239              
  Partials                              40       40              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@satya164 satya164 force-pushed the @satya164/navigation-in-child branch from cdc8f11 to 6fa3de4 Compare October 9, 2022 14:10
@satya164 satya164 force-pushed the @satya164/navigation-independent-tree branch from 82aac40 to 24ceac7 Compare October 9, 2022 14:13
@satya164 satya164 merged commit 4740993 into @satya164/navigation-in-child Oct 11, 2022
@satya164 satya164 deleted the @satya164/navigation-independent-tree branch October 11, 2022 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants