@@ -144,8 +144,8 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
144144 resolve ( LDClient . get ( environment: environment) !. variation ( forKey: flagKey, defaultValue: defaultValue) as String )
145145 }
146146
147- @objc func jsonVariationArray( _ flagKey: String , defaultValue: Array < RCTConvert > , environment: String , resolve: RCTPromiseResolveBlock , reject: RCTPromiseRejectBlock ) -> Void {
148- resolve ( LDClient . get ( environment: environment) !. variation ( forKey: flagKey, defaultValue: defaultValue) as Array )
147+ @objc func jsonVariationArray( _ flagKey: String , defaultValue: Array < Any > , environment: String , resolve: RCTPromiseResolveBlock , reject: RCTPromiseRejectBlock ) -> Void {
148+ resolve ( LDClient . get ( environment: environment) !. variation ( forKey: flagKey, defaultValue: defaultValue) as Array < Any > )
149149 }
150150
151151 @objc func jsonVariationObject( _ flagKey: String , defaultValue: NSDictionary , environment: String , resolve: RCTPromiseResolveBlock , reject: RCTPromiseRejectBlock ) -> Void {
@@ -222,7 +222,7 @@ class LaunchdarklyReactNativeClient: RCTEventEmitter {
222222 resolve ( jsonObject)
223223 }
224224
225- @objc func jsonVariationDetailArray( _ flagKey: String , defaultValue: Array < RCTConvert > , environment: String , resolve: RCTPromiseResolveBlock , reject: RCTPromiseRejectBlock ) -> Void {
225+ @objc func jsonVariationDetailArray( _ flagKey: String , defaultValue: Array < Any > , environment: String , resolve: RCTPromiseResolveBlock , reject: RCTPromiseRejectBlock ) -> Void {
226226 let detail = LDClient . get ( environment: environment) !. variationDetail ( forKey: flagKey, defaultValue: defaultValue)
227227 let jsonObject : NSDictionary = [
228228 " value " : ( detail. value as Any ) ,
0 commit comments