@appboxo/react-native-sdk 1.1.0 → 1.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+ ## [1.1.1]
3
+ - add enableSplash param to openMiniapp
4
+
5
+ ## [1.1.0]
6
+ - native android sdk ver. 1.5.16
7
+ - native ios sdk ver. 1.5.11
8
+ - add Consent Management
9
+ - add language support
10
+ - add sandbox mode
11
+ - save state when user close the miniapp
12
+
13
+ ## [1.0.40] - 2023-11-24
14
+ - native ios sdk ver. 1.4.13
15
+ - native android sdk ver. 1.4.21
@@ -91,7 +91,8 @@ class RnappboxosdkModule(reactContext: ReactApplicationContext) :
91
91
  theme: String?,
92
92
  extraUrlParams: ReadableMap?,
93
93
  urlSuffix: String?,
94
- colors: ReadableMap?
94
+ colors: ReadableMap?,
95
+ enableSplash: Boolean
95
96
  ) {
96
97
  val miniapp: Miniapp = Appboxo.getMiniapp(appId)
97
98
  .setCustomEventListener(this)
@@ -125,6 +126,7 @@ class RnappboxosdkModule(reactContext: ReactApplicationContext) :
125
126
  colors.getString("tertiaryColor") ?: "",
126
127
  )
127
128
  }
129
+ configBuilder.enableSplash(enableSplash)
128
130
  miniapp.setConfig(configBuilder.build())
129
131
  miniapp.open(reactContext)
130
132
  }
@@ -137,7 +139,7 @@ class RnappboxosdkModule(reactContext: ReactApplicationContext) :
137
139
 
138
140
  @ReactMethod
139
141
  fun closeMiniapp(appId: String) {
140
- handler.post { Appboxo.getExistingMiniapp(appId)?.close() }
142
+ handler.post { Appboxo.getExistingMiniapp(appId)?.close() }
141
143
  }
142
144
 
143
145
  override fun handle(
package/index.d.ts CHANGED
@@ -54,8 +54,9 @@ declare module '@appboxo/react-native-sdk' {
54
54
  data?: object,
55
55
  theme?: 'dark' | 'light' | 'system',
56
56
  extraUrlParams?: { [key: string]: string },
57
- urlSuffix?: string
58
- colors?: { primaryColor: string, secondaryColor: string, tertiaryColor: string }
57
+ urlSuffix?: string,
58
+ colors?: { primaryColor: string, secondaryColor: string, tertiaryColor: string },
59
+ enableSplash?: boolean
59
60
  },
60
61
  ): void
61
62
 
@@ -10,7 +10,8 @@ const mOpenMiniapp = (miniAppId, options) => {
10
10
  options?.theme === 'dark' || options?.theme === 'light' || options?.theme === 'system' ? options.theme : null,
11
11
  options?.extraUrlParams,
12
12
  options?.urlSuffix,
13
- options?.colors
13
+ options?.colors,
14
+ options?.enableSplash ?? true
14
15
  )
15
16
  }
16
17
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appboxo/react-native-sdk",
3
3
  "title": "Appboxo react native sdk",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "description": "Appboxo react native sdk",
6
6
  "main": "index.js",
7
7
  "files": [