Skip to content

Commit 45e34eb

Browse files
Update README.md
1 parent 9a86dda commit 45e34eb

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

README.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,7 @@ npm install react-native-nitro-share-intent react-native-nitro-modules
7070
```
7171

7272
### Android Setup
73-
74-
1. **Add to MainActivity.java/kt**:
75-
76-
```kotlin
77-
import com.margelo.nitro.nitroshareintent.NitroShareIntent
78-
79-
override fun onCreate(savedInstanceState: Bundle?) {
80-
super.onCreate(savedInstanceState)
81-
// Your existing code...
82-
83-
// Handle initial share intent
84-
NitroShareIntent.instance.handleIntent(intent)
85-
}
86-
87-
override fun onNewIntent(intent: Intent) {
88-
super.onNewIntent(intent)
89-
// Handle new share intents
90-
NitroShareIntent.instance.handleIntent(intent)
91-
}
92-
```
93-
94-
2. **Configure Intent Filters in AndroidManifest.xml**:
73+
**Configure Intent Filters in AndroidManifest.xml**:
9574

9675
```xml
9776
<activity

0 commit comments

Comments
 (0)