react-native-smartlinks 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/package.json +3 -1
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# react-native-smartlinks
|
|
2
|
+
|
|
3
|
+
Native bridge for the [SmartLinks React Native SDK](https://www.npmjs.com/package/smartlinks) — analytics, deep links, and native API routing on iOS and Android.
|
|
4
|
+
|
|
5
|
+
Install together with the umbrella package:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install smartlinks react-native-smartlinks
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Native dependencies
|
|
12
|
+
|
|
13
|
+
| Platform | Dependency |
|
|
14
|
+
|----------|------------|
|
|
15
|
+
| **Android** | `live.smartlinks:smartlinks-sdk-core:2.0.1` (Maven Central, autolinked) |
|
|
16
|
+
| **iOS** | `SmartLinksSDK/Core ~> 2.0.1` (CocoaPods, via podspec) |
|
|
17
|
+
|
|
18
|
+
## iOS setup
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
cd ios && pod install
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Add **Associated Domains**: `applinks:smartlinks.live`
|
|
25
|
+
|
|
26
|
+
The iOS core SDK is published from [smartlinks_ios](https://gitlab.com/elmansoryanas/smartlinks_ios).
|
|
27
|
+
|
|
28
|
+
## Android setup
|
|
29
|
+
|
|
30
|
+
No extra Gradle steps — autolinking pulls the Maven artifact. Requires `compileSdk 36`, JDK 17, AGP 8.9+.
|
|
31
|
+
|
|
32
|
+
## Deep links in JS
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { SmartLinks } from 'smartlinks';
|
|
36
|
+
|
|
37
|
+
SmartLinks.analytics.getLink((route) => {
|
|
38
|
+
console.log(route.route, route.params);
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Docs
|
|
43
|
+
|
|
44
|
+
[Native setup guide](https://gitlab.com/elmansoryanas/smartlinks-react-native/-/blob/main/docs/native-setup.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-smartlinks",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Native bridge for SmartLinks analytics and deep links on React Native",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"ios",
|
|
13
13
|
"react-native-smartlinks.podspec",
|
|
14
14
|
"react-native.config.js",
|
|
15
|
+
"README.md",
|
|
15
16
|
"!.npmignore"
|
|
16
17
|
],
|
|
17
18
|
"publishConfig": {
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"deep-linking"
|
|
34
35
|
],
|
|
35
36
|
"license": "Apache-2.0",
|
|
37
|
+
"homepage": "https://gitlab.com/elmansoryanas/smartlinks-react-native#readme",
|
|
36
38
|
"repository": {
|
|
37
39
|
"type": "git",
|
|
38
40
|
"url": "https://gitlab.com/elmansoryanas/smartlinks-react-native.git",
|