-
-
Notifications
You must be signed in to change notification settings - Fork 147
Conversation
Having problem with `reset` to stack
- Reorganized testUtils mainly.
Codecov Report
@@ Coverage Diff @@
## master #45 +/- ##
==========================================
- Coverage 85.14% 84.29% -0.85%
==========================================
Files 28 32 +4
Lines 673 707 +34
Branches 83 81 -2
==========================================
+ Hits 573 596 +23
- Misses 79 91 +12
+ Partials 21 20 -1 |
@marsinearth Please check this! I've got this first hand. |
Question: Is SwitchNavigator is deprecated? But you converted switchNavigator to RootNavigator that you made with StackNavigator |
@Ta2Rim Thanks for the detail. Looks like I've missed this in the |
@hyochan I'd love to |
How can I work on it? |
@Ta2Rim PR is available on master branch. You can refer to the clip |
@hyochan
I guess it's caused that |
@Ta2Rim Thanks for trying out! I've also tried myself but could not achieve it either. Let's stick to |
* [WIP] Migrated `AuthStackNavigator` * [WIP] Reseting navigation to [MainStack] * Ported [MainTab] in [MainStack] * Updated all test codes - Reorganized testUtils mainly. * Remove [SwitchNavigator] * Remove old and dead codes * Fix navigation types
@Ta2Rim I have news for you in my post. The workaround for |
@hyochan |
Description
react-navigation@next package which is currently
v5
has majority updates which make the code looks much pretty and concise.Originally, params such as
navigationOption
were statically bound which sometimes occurs unexpected behavior like when you try to communicate with header and screen. Looking at v4 and v5,v5
has additionalroute
param that works as aHOC
pattern which is muchreact
friendly. In this case,v4
can't ensure that when thegetParam
is released or is not bound from the child screen. It just doesn't look right to go.We are hoping not to drive our codes like this even
v5
is still inalpha
.Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.yarn test
oryarn test -u
if you need to update snapshot.yarn lint