Skip to content

Instantly share code, notes, and snippets.

Avatar

Artsiom Grintsevich greenfrvr

View GitHub Profile
View RNWindowGuard.swift
private func convertToWindowInsetsMap(insets: UIEdgeInsets) -> [String: Any] {
return [
"leftInset": insets.left,
"rightInset": insets.right,
"topInset": insets.top,
"bottomInset": insets.bottom,
"hasNotch": insets.bottom > 0
]
}
You can’t perform that action at this time.