-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4f8d06
commit c01663a
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...rc_library/Extensions+RNIDictionaryRepresentable/CGPoint+RNIDictionaryRepresentable.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; |
File renamed without changes.