@edulib-france/expo-yawl 0.0.3 → 0.0.4

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 +11 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![NPM Version](https://img.shields.io/npm/v/@edulib-france/expo-yawl)
2
+
1
3
  # @edulib-france/expo-yawl
2
4
 
3
5
  Yawl for React Native
@@ -31,6 +33,14 @@ export const yawl = new Yawl({
31
33
 
32
34
  # Usage
33
35
 
36
+ ## Initialize Yawl
37
+
38
+ Must be called before any other Yawl method.
39
+
40
+ ```ts
41
+ await yawl.init();
42
+ ```
43
+
34
44
  ## Track Events
35
45
 
36
46
  ```ts
@@ -49,6 +59,6 @@ We still need to find the best way to get the view name in React Native. For now
49
59
 
50
60
  ```ts
51
61
  yawl.trackView({
52
- page: 'page_name'
62
+ page: "page_name",
53
63
  });
54
64
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edulib-france/expo-yawl",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,7 +15,7 @@
15
15
  "test": "vitest",
16
16
  "prepare": "expo-module prepare",
17
17
  "prepublishOnly": "expo-module prepublishOnly",
18
- "publish:npm": "npm clean && npm build && npm publish",
18
+ "publish:npm": "npm run clean && npm run build && npm publish",
19
19
  "expo-module": "expo-module",
20
20
  "open:ios": "xed example/ios",
21
21
  "open:android": "open -a \"Android Studio\" example/android"
@@ -38,7 +38,7 @@
38
38
  "homepage": "https://github.com/edulib-france/expo-yawl#readme",
39
39
  "dependencies": {
40
40
  "@react-native-async-storage/async-storage": "1.23.1",
41
- "react-native-queue": "git+https://github.com/Bravado-network/react-native-queue-asyncstorage.git#async-storage-galatea-384",
41
+ "react-native-queue": "git+https://github.com/edulib-france/react-native-queue-asyncstorage.git#005bb41",
42
42
  "wretch": "^2.11.0",
43
43
  "expo-device": "~7.0.3",
44
44
  "expo-application": "~6.0.2",