-
Notifications
You must be signed in to change notification settings - Fork 262
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
Showing
8 changed files
with
87 additions
and
37 deletions.
There are no files selected for viewing
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
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
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,70 @@ | ||
diff --git a/node_modules/react-native-safe-area-view/index.d.ts b/node_modules/react-native-safe-area-view/index.d.ts | ||
index 4f689fb..9219d08 100644 | ||
--- a/node_modules/react-native-safe-area-view/index.d.ts | ||
+++ b/node_modules/react-native-safe-area-view/index.d.ts | ||
@@ -1,6 +1,7 @@ | ||
import { ComponentClass } from 'react'; | ||
import { ViewProperties } from 'react-native'; | ||
|
||
+ | ||
export type SafeAreaViewForceInsetValue = 'always' | 'never'; | ||
|
||
export interface SafeAreaViewProps extends ViewProperties { | ||
@@ -29,4 +30,6 @@ export const withSafeArea: <P extends object>( | ||
Component: React.ComponentType<P> | ||
) => React.ComponentType<P & SafeAreaViewProps>; | ||
|
||
+export const isIPhoneX = boolean; | ||
+ | ||
export default SafeAreaView; | ||
diff --git a/node_modules/react-native-safe-area-view/index.js b/node_modules/react-native-safe-area-view/index.js | ||
index a21ff41..96f97e9 100644 | ||
--- a/node_modules/react-native-safe-area-view/index.js | ||
+++ b/node_modules/react-native-safe-area-view/index.js | ||
@@ -15,6 +15,12 @@ const X_WIDTH = 375; | ||
const X_HEIGHT = 812; | ||
const XSMAX_WIDTH = 414; | ||
const XSMAX_HEIGHT = 896; | ||
+const IPHONE12_WIDTH = 390; | ||
+const IPHONE12_HEIGHT = 844; | ||
+const IPHONE12MAX_WIDTH = 428; | ||
+const IPHONE12MAX_HEIGHT = 926; | ||
+const IPHONE12MINI_WIDTH = 360; | ||
+const IPHONE12MINI_HEIGHT = 780; | ||
const PAD_WIDTH = 768; | ||
const PAD_HEIGHT = 1024; | ||
const IPADPRO11_WIDTH = 834; | ||
@@ -33,7 +39,7 @@ const { height: D_HEIGHT, width: D_WIDTH } = getResolvedDimensions(); | ||
const PlatformConstants = Platform.constants || {}; | ||
const { minor = 0 } = PlatformConstants.reactNativeVersion || {}; | ||
|
||
-const isIPhoneX = (() => { | ||
+export const isIPhoneX = (() => { | ||
if (Platform.OS === 'web') return false; | ||
|
||
return ( | ||
@@ -41,7 +47,13 @@ const isIPhoneX = (() => { | ||
((D_HEIGHT === X_HEIGHT && D_WIDTH === X_WIDTH) || | ||
(D_HEIGHT === X_WIDTH && D_WIDTH === X_HEIGHT))) || | ||
((D_HEIGHT === XSMAX_HEIGHT && D_WIDTH === XSMAX_WIDTH) || | ||
- (D_HEIGHT === XSMAX_WIDTH && D_WIDTH === XSMAX_HEIGHT)) | ||
+ (D_HEIGHT === XSMAX_WIDTH && D_WIDTH === XSMAX_HEIGHT)) || | ||
+ ((D_HEIGHT === IPHONE12_HEIGHT && D_WIDTH === IPHONE12_WIDTH) || | ||
+ (D_HEIGHT === IPHONE12_WIDTH && D_WIDTH === IPHONE12_HEIGHT)) || | ||
+ ((D_HEIGHT === IPHONE12MAX_HEIGHT && D_WIDTH === IPHONE12MAX_WIDTH) || | ||
+ (D_HEIGHT === IPHONE12MAX_WIDTH && D_WIDTH === IPHONE12MAX_HEIGHT)) || | ||
+ ((D_HEIGHT === IPHONE12MINI_HEIGHT && D_WIDTH === IPHONE12MINI_WIDTH) || | ||
+ (D_HEIGHT === IPHONE12MINI_WIDTH && D_WIDTH === IPHONE12MINI_HEIGHT)) | ||
); | ||
})(); | ||
|
||
diff --git a/node_modules/react-native-safe-area-view/index.js.flow b/node_modules/react-native-safe-area-view/index.js.flow | ||
index 4c59929..a3274a2 100644 | ||
--- a/node_modules/react-native-safe-area-view/index.js.flow | ||
+++ b/node_modules/react-native-safe-area-view/index.js.flow | ||
@@ -27,3 +27,5 @@ declare export function getInset( | ||
value: 'horizontal' | 'right' | 'left' | 'vertical' | 'top' | 'bottom', | ||
isLandscape: boolean | ||
): number | ||
+ | ||
+declare export var isIPhoneX: boolean; |
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3948,10 +3948,10 @@ edge-exchange-plugins@^0.11.11: | |
iso4217 "^0.2.0" | ||
utf8 "^3.0.0" | ||
|
||
edge-login-ui-rn@^0.6.20: | ||
version "0.6.20" | ||
resolved "https://registry.yarnpkg.com/edge-login-ui-rn/-/edge-login-ui-rn-0.6.20.tgz#44809c77e20745840cdee0859994974e8dff87da" | ||
integrity sha512-4Dk50nSiErPeUse0KYVnAhICTnk2BAvOhm38V0f2xloB2UqdW5xjJNVbVBzzeDgBWEyV3uBn5AtDGtv4M9OTxQ== | ||
edge-login-ui-rn@^0.6.21: | ||
version "0.6.21" | ||
resolved "https://registry.yarnpkg.com/edge-login-ui-rn/-/edge-login-ui-rn-0.6.21.tgz#4a4bab5e6fe25d49aafe7b1a9209a9311b12cda9" | ||
integrity sha512-mi3I49pG+ThTmFH76d6TRzKVWbKb6DJlhbj7BtWjk+SPxYVPvD6zwlzQPk+bWdLmutlcdNVgFueo5cM5oN4VQQ== | ||
dependencies: | ||
cleaners "^0.3.1" | ||
material-ui "^0.20.0" | ||
|
@@ -9629,21 +9629,7 @@ react-native-safari-view@^2.1.0: | |
resolved "https://registry.yarnpkg.com/react-native-safari-view/-/react-native-safari-view-2.1.0.tgz#1e0cd12c62bce79bc1759c7e281646b08b61c959" | ||
integrity sha1-HgzRLGK855vBdZx+KBZGsIthyVk= | ||
|
||
[email protected]: | ||
version "0.11.0" | ||
resolved "https://registry.yarnpkg.com/react-native-safe-area-view/-/react-native-safe-area-view-0.11.0.tgz#4f3dda43c2bace37965e7c6aef5fc83d4f19d174" | ||
integrity sha512-N3nElaahu1Me2ltnfc9acpgt1znm6pi8DSadKy79kvdzKwvVIzw0IXueA/Hjr51eCW1BsfNw7D1SgBT9U6qEkA== | ||
dependencies: | ||
hoist-non-react-statics "^2.3.1" | ||
|
||
react-native-safe-area-view@^0.14.4: | ||
version "0.14.4" | ||
resolved "https://registry.yarnpkg.com/react-native-safe-area-view/-/react-native-safe-area-view-0.14.4.tgz#1647fa74fd452cb8cee4f47bd08de3829451bf5d" | ||
integrity sha512-ypDQVoAyNHBhMR1IGfadm8kskNzPg5czrDAzQEu5MXG9Ahoi5f1cL/rT2KO+R9f6xRjf6b1IjY53m0B0xHRd0A== | ||
dependencies: | ||
hoist-non-react-statics "^2.3.1" | ||
|
||
react-native-safe-area-view@^0.14.9: | ||
[email protected], [email protected], react-native-safe-area-view@^0.14.9: | ||
version "0.14.9" | ||
resolved "https://registry.yarnpkg.com/react-native-safe-area-view/-/react-native-safe-area-view-0.14.9.tgz#90ee8383037010d9a5055a97cf97e4c1da1f0c3d" | ||
integrity sha512-WII/ulhpVyL/qbYb7vydq7dJAfZRBcEhg4/UWt6F6nAKpLa3gAceMOxBxI914ppwSP/TdUsandFy6lkJQE0z4A== | ||
|