Skip to content

Commit

Permalink
fix: getting started
Browse files Browse the repository at this point in the history
Added imports and fixed ID reference
  • Loading branch information
MattMattV authored Sep 26, 2024
1 parent a5d11dd commit 1b3e131
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _source/android/01_getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ Set up the app's layout by opening `activity_main.xml` and replace the entire fi
Finally, open `MainActivity.kt` and replace the entire file with this code:

```kotlin
import android.os.Bundle
import dev.hotwire.navigation.activities.HotwireActivity
import dev.hotwire.navigation.navigator.NavigatorConfiguration

class MainActivity : HotwireActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Expand All @@ -71,7 +75,7 @@ class MainActivity : HotwireActivity() {
NavigatorConfiguration(
name = "main",
startLocation = "https://hotwire-native-demo.dev",
navigatorHostId = R.id.main_navigator_host
navigatorHostId = R.id.main_nav_host
)
)
}
Expand Down

0 comments on commit 1b3e131

Please sign in to comment.