From 29752e767a48cf4cfe42922b3469c3ab14f690f0 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 12 Nov 2022 21:01:52 +0900 Subject: [PATCH] update module name and function name --- index.d.ts | 2 +- index.js.flow | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 3ec3197..41885e8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,6 +6,6 @@ declare module "react-native-safearea-height" { export function isIPhone12Max(): boolean; export function isIPhoneWithMonobrow(): boolean; export function isIPhone13Mini(): boolean; - export function isIPhoneDynamicIsland(): boolean; + export function isIPhoneWithDynamicIsland(): boolean; export function isExpo(): boolean; } diff --git a/index.js.flow b/index.js.flow index 36c1a54..4d5ead0 100644 --- a/index.js.flow +++ b/index.js.flow @@ -1,4 +1,4 @@ -declare module "react-native-status-bar-height" { +declare module "react-native-safearea-height" { declare function getStatusBarHeight(skipAndroid?: boolean): number; declare function isIPhoneX(): boolean; declare function isIPhoneXMax(): boolean; @@ -6,6 +6,6 @@ declare module "react-native-status-bar-height" { declare function isIPhone12Max(): boolean; declare function isIPhoneWithMonobrow(): boolean; declare function isIPhone13Mini(): boolean; - declare function isIPhoneDynamicIsland(): boolean; + declare function isIPhoneWithDynamicIsland(): boolean; declare function isExpo(): boolean; }