Skip to content

Commit

Permalink
💫 Update: RNIDictionarySynthesizable
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed May 5, 2023
1 parent 040ac9c commit f713ba1
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,17 @@ extension RNIDictionarySynthesizable {
};
};

if isJSDict, let dict = value as? Dictionary<AnyHashable, Any> {
return dict.mapValues {
return Self.recursivelyParseValue($0, isJSDict: isJSDict);
};
};

if let dictRepresentable = value as? RNIDictionaryRepresentable {
return dictRepresentable.asDictionary;
let dict = dictRepresentable.asDictionary;

guard isJSDict else { return dict };
return Self.recursivelyParseValue(dict, isJSDict: isJSDict);
};

if let encodable = value as? Encodable,
Expand Down

0 comments on commit f713ba1

Please sign in to comment.