Skip to content

Instantly share code, notes, and snippets.

@Morfly
Last active November 6, 2021 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morfly/50abaadcebd1451bff90224821a226e7 to your computer and use it in GitHub Desktop.
Save Morfly/50abaadcebd1451bff90224821a226e7 to your computer and use it in GitHub Desktop.
import androidx.navigation.compose.composable
interface FeatureEntry {
val featureRoute: String
fun NavGraphBuilder.composable(
navController: NavHostController,
destinations: Destinations,
) {
composable(featureRoute) { backStackEntry ->
Composable(navController, destinations, backStackEntry)
}
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment