Skip to content

Commit 95f58c9

Browse files
committed
expose isIphoneX constant, also fix some docs
1 parent 3b2201a commit 95f58c9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-ui-lib",
3-
"version": "3.3.32",
3+
"version": "3.3.33",
44
"main": "index.js",
55
"author": "Ethan Sharabi <[email protected]>",
66
"publishConfig": {

src/components/featureHighlight/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class FeatureHighlight extends BaseComponent {
4040
*/
4141
visible: PropTypes.bool,
4242
/**
43-
* Frame of the area to highlight
43+
* Frame of the area to highlight {x, y, width, height}
4444
*/
4545
highlightFrame: PropTypes.shape({
4646
x: PropTypes.number,

src/helpers/Constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ export const screenHeight = height;
1010
export const isSmallScreen = isIOS ? (screenWidth <= 320) : (screenWidth <= 360);
1111
export const isShortScreen = screenHeight <= 600;
1212
export const statusBarHeight = isIOS ? 20 : StatusBarManager.HEIGHT;
13+
export const isIphoneX = isIOS && !Platform.isPad && !Platform.isTVOS && (screenHeight === 812 || screenWidth === 812);

0 commit comments

Comments
 (0)