Skip to content

Commit a4eca57

Browse files
mdvaccacortinico
andauthored
Update website/versioned_docs/version-0.67/integration-with-android-fragment.md
Co-authored-by: Nicola Corti <corti.nico@gmail.com>
1 parent 013dd8f commit a4eca57

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

website/versioned_docs/version-0.67/integration-with-android-fragment.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,18 @@ Update your Activity's onCreate method as follows:
189189
override fun onCreate(savedInstanceState: Bundle) {
190190
super.onCreate(savedInstanceState)
191191
setContentView(R.layout.main_activity)
192-
192+
193193
button = findViewById<Button>(R.id.button)
194194
button.setOnClickListener {
195-
val reactNativeFragment = ReactFragment.Builder()
195+
val reactNativeFragment =
196+
ReactFragment.Builder()
196197
.setComponentName("HelloWorld")
197198
.setLaunchOptions(getLaunchOptions("test message"))
198199
.build()
199-
200200
getSupportFragmentManager()
201-
.beginTransaction()
202-
.add(R.id.reactNativeFragment, reactNativeFragment)
203-
.commit()
201+
.beginTransaction()
202+
.add(R.id.reactNativeFragment, reactNativeFragment)
203+
.commit()
204204
}
205205
}
206206
```

0 commit comments

Comments
 (0)