Skip to content

Commit

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

import Foundation

extension CGPoint: RNIDictionaryRepresentable {
public var asDictionary: [String: Any] {
var dict: [String: Any] = [:];
dict["x"] = self.x;
dict["y"] = self.y;

return dict;
};
};

0 comments on commit ac200fe

Please sign in to comment.