Skip to content

Commit 6c35c25

Browse files
authored
Update highlighting for onCreate method for clarity
it seems by the description that you should just edit the function but in fact you need to add the onCreate function in MainActivity as its not there in the template.
1 parent c52c390 commit 6c35c25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

versioned_docs/version-7.x/getting-started.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ import com.swmansion.rnscreens.fragment.restoration.RNScreensFragmentFactory
9999

100100
class MainActivity: ReactActivity() {
101101
// ...
102+
103+
// highlight-start
102104
override fun onCreate(savedInstanceState: Bundle?) {
103-
// highlight-start
104105
supportFragmentManager.fragmentFactory = RNScreensFragmentFactory()
105106
super.onCreate(savedInstanceState)
106-
// highlight-end
107107
}
108+
// highlight-end
109+
108110
// ...
109111
}
110112
```

0 commit comments

Comments
 (0)