Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RealmScreen: Assume
navigation.state.params
will exist.
There is no legitimate case in which we navigate to `RealmScreen` without passing `params`, so it's not `RealmScreen`'s job to decide what happens if `params` is missing. Thankfully, we've centralized the navigate-to-`RealmScreen` logic in `navigateToRealmScreen` in navActions.js, and, there, it's clear that `params` is being passed. In React Navigation v5, which is a dramatic departure from the current API, we may get more robust type-checking, so that it's feasible to catch any instances where we inadvertently don't pass `params` [1]. [1] https://reactnavigation.org/docs/typescript/
- Loading branch information