message: fix: Don't hard crash when we fail getting dimensions
diff: import { Dimensions } from "react-native"
  interface AppDimensions {
  - screenWidth: number
  - screenHeight: number
  - screenScale: number
  - screenFontScale: number
  - windowWidth: number
  - windowHeight: number
  - windowScale: number
  - windowFontScale: number
  + screenWidth?: number
  + screenHeight?: number
  + screenScale?: number
  + screenFontScale?: number
  + windowWidth?: number
  + windowHeight?: number
  + windowScale?: number
  + windowFontScale?: number
  }
  export function getReactNativeDimensionsWithDimensions(
  @@ -16,24 +16,47 @@ export function getReactNativeDimensionsWithDimensions(
  win: any
  ): AppDimensions | null {
  try {
  - return {
  + let screenInfo = {}
  + let windowInfo = {}
  +
  + if (screen) {
  + screenInfo = {
  screenWidth: Math.ceil(screen.width),
  screenHeight: Math.ceil(screen.height),
  screenScale: screen.scale,
  screenFontScale: screen.fontScale,
  + }
  + }
  +
  + if (win) {
  + windowInfo = {
  windowWidth: Math.ceil(win.width),
  windowHeight: Math.ceil(win.height),
  windowScale: win.scale,
  windowFontScale: win.fontScale,
  }
  + }
  +
  + return {
  + ...screenInfo,
  + ...windowInfo,
  + }
  } catch (e) {}
  return null
  }
  export default function getReactNativeDimensions(): AppDimensions | null {
  - const screen = Dimensions.get("screen")
  - const win = Dimensions.get("window")
  + let screen = null
  + let win = null
  +
  + try {
  + screen = Dimensions.get("screen")
  + } catch {}
  +
  + try {
  + win = Dimensions.get("window")
  + } catch {}
  return getReactNativeDimensionsWithDimensions(screen, win)
  }
  