Skip to content

Commit

Permalink
⭐️ Impl: Add CGSize+RNIDictionaryRepresentable
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed May 3, 2023
1 parent ac200fe commit 9bbc2fa
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// CGSize+RNIDictionaryRepresentable.swift
// react-native-ios-modal
//
// Created by Dominic Go on 5/3/23.
//

import Foundation

extension CGSize: RNIDictionaryRepresentable {
public var asDictionary: [String: Any] {
var dict: [String: Any] = [:];
dict["width"] = self.width;
dict["height"] = self.height;

return dict;
};
};

0 comments on commit 9bbc2fa

Please sign in to comment.