Give the application one navigation source, and make the router navigate through it.
Both halves have to be the same object: the adapter listens to the source, the router
pushes into it. Creating it here, once, before any event, is what guarantees that and is
why this is a build-phase middleware rather than something the adapter does at runtime.
A source already configured under stone.reactNative.navigationSource is respected
(that is the seam for a custom base URL, or a test's own source), and so is a navigator
the application set for itself.
Parameters
context: BlueprintContext<IBlueprint,ClassType>
The configuration context containing modules and blueprint.
Give the application one navigation source, and make the router navigate through it.
Both halves have to be the same object: the adapter listens to the source, the router pushes into it. Creating it here, once, before any event, is what guarantees that and is why this is a build-phase middleware rather than something the adapter does at runtime.
A source already configured under
stone.reactNative.navigationSourceis respected (that is the seam for a custom base URL, or a test's own source), and so is a navigator the application set for itself.