@attentive-mobile/attentive-react-native-sdk 0.1.0 → 0.4.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.
Files changed (2) hide show
  1. package/README.md +3 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -5,7 +5,7 @@ The Attentive React Native SDK provides the functionality to render Attentive cr
5
5
 
6
6
  ## Installation
7
7
 
8
- TODO
8
+ Run `npm install @attentive-mobile/attentive-react-native-sdk` from your app's root directory.
9
9
 
10
10
  ## Usage
11
11
  See the [Example Project](https://github.com/attentive-mobile/attentive-react-native-sdk/blob/main/example)
@@ -70,19 +70,12 @@ The more identifiers that are passed to `identify`, the better the SDK will func
70
70
  | Custom Identifiers | Map<String,String> | Key-value pairs of custom identifier names and values. The values should be unique to this user. |
71
71
 
72
72
  ### Load the Creative
73
- #### 1. Create the Creative
73
+
74
74
  ```typescript
75
75
  // Trigger the Creative. This will show the Creative as a pop-up over the rest of the app.
76
76
  Attentive.triggerCreative();
77
77
  ```
78
78
 
79
- #### 3. Destroy the Creative
80
-
81
- TODO
82
-
83
- __*** NOTE: You must call the destroy method when the creative is no longer in use to properly clean up the WebView and it's resources ***__
84
-
85
-
86
79
  ### Record user events
87
80
 
88
81
  The SDK currently supports `PurchaseEvent`, `AddToCartEvent`, `ProductViewEvent`, and `CustomEvent`.
@@ -137,4 +130,4 @@ Attentive.identify({phone: '+15556667777'};)
137
130
  // The SDK will have these two identifiers:
138
131
  // email: 'theusersemail@gmail.com'
139
132
  // phone: '+15556667777'
140
- ```
133
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attentive-mobile/attentive-react-native-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.4.1",
4
4
  "description": "React Native Module for the Attentive SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",