Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 84dc998

Browse files
authored
Merge pull request #31 from Titozzz/patch-1
feat(iOS): Support user.country
2 parents 681d473 + a0f5195 commit 84dc998

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios/LaunchdarklyReactNativeClient.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
124124
user.isAnonymous = userConfig["anonymous"] as! Bool
125125
}
126126

127+
if userConfig["country"] != nil {
128+
user.country = userConfig["country"] as? String
129+
}
130+
127131
if userConfig["privateAttributeNames"] != nil {
128132
user.privateAttributes = userConfig["privateAttributeNames"] as? [String]
129133
}

0 commit comments

Comments
 (0)