You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-31Lines changed: 28 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ Installation of the QubitSDK, to provide event tracking and lookup. To make use
6
6
7
7
### Installation
8
8
9
-
1.`$ npm install qubit-sdk-react-native --save`
10
-
or
11
-
`$ yarn add qubit-sdk-react-native`
9
+
1.`$ npm install qubit-sdk-react-native --save`
10
+
or
11
+
`$ yarn add qubit-sdk-react-native`
12
12
13
-
2. Navigate to your `/ios` directory and run `pod install` to ensure the `QubitSDK` CocoaPod is installed. Android should require no further installation.
13
+
2.Navigate to your `/ios` directory and run `pod install` to ensure the `QubitSDK` CocoaPod is installed. Android should require no further installation.
14
14
15
15
Optional - if you are using React Native < 0.60, you must `link` the library.
16
16
@@ -54,6 +54,9 @@ and send first event
54
54
-[getExperiences](#getexperiences)
55
55
-[Parameters](#parameters-3)
56
56
-[Examples](#examples-6)
57
+
-[getPlacement](#getplacement)
58
+
-[Parameters](#parameters-4)
59
+
-[Examples](#examples-7)
57
60
58
61
#### start
59
62
@@ -221,45 +224,39 @@ Returns Placement for given parameters.
221
224
##### Parameters
222
225
223
226
-`placementId`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Unique ID of the placement.
224
-
-`mode`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The mode to fetch placements content with, can be one of LIVE/SAMPLE/PREVIEW. Defaults to LIVE.
225
-
-`attributes`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** JSON string containing custom attributes to be used to query for the placement. "visitor" attribute will be ignored as it is set by SDK.
227
+
-`mode`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** The mode to fetch placements content with, can be one of LIVE/SAMPLE/PREVIEW. Defaults to LIVE.
228
+
-`attributes`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** JSON string containing custom attributes to be used to query for the placement. "visitor" attribute will be ignored as it is set by SDK.
-`placementPromise`**[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<Placement>** Promise with query result.
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<Placement>** with a map describing Placement object.
259
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<Placement>**Promise with an object describing Placement object.
0 commit comments