Skip to content

Commit 93bf3cc

Browse files
authored
Tweak Kotlin fragment import docs
1 parent b39e8a0 commit 93bf3cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/KOTLIN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Examples:
221221
An fragment rendering `ReactRootView` with a given module name. It automatically uses an instance of a bridge created in `startReactNative` method. It works well with exposed JavaScript module. All the lifecycles are proxied to `ReactInstanceManager`. It's the simplest way to embed React Native into your navigation stack.
222222

223223
```kotlin
224-
import com.callstack.reactnativebrownfield.ReactNativeActivity
224+
import com.callstack.reactnativebrownfield.ReactNativeFragment
225225
```
226226

227227
---
@@ -242,27 +242,27 @@ Params:
242242
Examples:
243243

244244
```kotlin
245-
ReactNativeActivity.createReactNativeFragment("ReactNative")
245+
ReactNativeFragment.createReactNativeFragment("ReactNative")
246246
```
247247

248248
```kotlin
249249
val bundle = new Bundle()
250250
bundle.putInt("score", 12)
251251

252-
ReactNativeActivity.createReactNativeFragment("ReactNative", bundle)
252+
ReactNativeFragment.createReactNativeFragment("ReactNative", bundle)
253253
```
254254

255255
```kotlin
256256
val map = hashMapOf<String, *>("score" to 12)
257257

258-
ReactNativeActivity.createReactNativeFragment("ReactNative", map)
258+
ReactNativeFragment.createReactNativeFragment("ReactNative", map)
259259
```
260260

261261
```kotlin
262262
val map = WritableMap()
263263
map.putInt("score", 12)
264264

265-
ReactNativeActivity.createReactActivityIntent(context, "ReactNative", map)
265+
ReactNativeFragment.createReactActivityIntent(context, "ReactNative", map)
266266
```
267267

268268
---

0 commit comments

Comments
 (0)