Skip to content

Commit

Permalink
Updated README documentation to include information about serializati…
Browse files Browse the repository at this point in the history
…on of navigators
  • Loading branch information
chRyNaN committed May 23, 2023
1 parent 0e666fa commit 6724558
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,17 @@ NavigationContainer(navigator) { destination ->
}
```

* Utilize [kotlinx serialization](https://github.com/Kotlin/kotlinx.serialization) and
the [serialization-parcelable](https://github.com/chRyNaN/serialization-parcelable) library to transfer a `Navigator`
between components.

```kotlin
val navigatorSerializer = Navigator.serializer(destinationSerializer, contextSerializer)

parcelable.encodeToParcel(serializer = navigatorSerializer, value = navigator)
json.encodeToString(serializer = navigatorSerializer, value = navigator)
```

## Documentation 📃

More detailed documentation is available in the [docs](docs/) folder. The entry point to the documentation can be
Expand Down

0 comments on commit 6724558

Please sign in to comment.