Skip to content

Commit ea8dca1

Browse files
committed
fixed minor issue on the metadata
1 parent a17a022 commit ea8dca1

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

docs/metaMap-reactNative.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ category: 61ae8e8dba577a0010791480
88

99
| LTS version (Recommended for most users): | Current Version(Latest features) |
1010
|-------------------------------------------|----------------------------------|
11-
| 4.7.2 | 4.7.2 |
11+
| 4.8.0 | 4.8.3 |
1212

1313
## Install MetaMap for React Native Expo
1414

ios/MetaMapRNSdk.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ @implementation MetaMapRNSdk {
1010
RCT_EXPORT_METHOD(showFlow:(NSString * _Nonnull)clientId flowId:(NSString * _Nullable)flowId metadata:(NSDictionary<NSString *, id> * _Nullable)metadata)
1111
{
1212
dispatch_async(dispatch_get_main_queue(), ^(void){
13-
metadata["sdkType"] = "react-native-ios";
13+
NSMutableDictionary *mutableDictionary = [metadata mutableCopy]; //Make the dictionary mutable to change/add
14+
mutableDictionary[@"sdkType"] = @"react-native-ios";
1415
[MetaMap.shared showMetaMapFlowWithClientId: clientId flowId: flowId metadata: metadata];
1516
[MetaMapButtonResult shared].delegate = self;
1617
self->hasListeners = YES;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-metamap-sdk",
33
"title": "React Native MetaMap Id Sdk",
4-
"version": "4.8.0",
4+
"version": "4.8.3",
55
"description": "Mati React Nastive Plugin",
66
"main": "index.js",
77
"scripts": {

0 commit comments

Comments
 (0)