How to use the expo.Constants.statusBarHeight function in expo

To help you get started, we’ve selected a few expo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github galio-org / galio / src / screens / Presentation.js View on Github external
);

const styles = StyleSheet.create({
  backgroundGradient: {
    position: 'absolute',
    top: 0,
    bottom: 0,
    right: 0,
    left: 0,
    zIndex: 0,
  },
  container: {
    paddingHorizontal: theme.SIZES.BASE,
  },
  navbar: {
    top: Constants.statusBarHeight,
    left: 0,
    right: 0,
    zIndex: 9999,
    position: 'absolute',
  },
});

export default Presentation;
github smartkarma / react-native-jumbo-html / example / App.js View on Github external
);
  }
};

export default function App() {
  return (
    
      
    
  );
}

const styles = StyleSheet.create({
  content: {
    padding: 16,
    paddingTop: Constants.statusBarHeight + 16
  }
});
github GraphCMS / graphcms-examples / current / react-native-fetch-swapi / App.js View on Github external
ANDROID: color(null, 0.85),
  },
};
const Loading = S.ActivityIndicator`
  margin: 15px;
`;
const Container = S.View`
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  background-color: ${COLOR.BG};
`;
const Header = S.View`
  width: 100%;
  padding: ${HEADER_PADDING}px;
  padding-top: ${HEADER_PADDING + Constants.statusBarHeight}px;
  backgroundColor: ${() => Platform.OS === 'ios' ? COLOR.HEADER.IOS : COLOR.HEADER.ANDROID}
`;
const Logo = S.Image`
  height: 60;
`;
const Divider = S.View`
  background-color: ${COLOR.DIV};
  width: 100%;
  height: 2;
`;
const ScrollView = S.ScrollView`
 margin-top: ${-(HEADER_TOTAL + Constants.statusBarHeight)}px; 
 z-index: -1;
`;
const ScrollContainer = S.View`
  margin-top: ${HEADER_TOTAL + Constants.statusBarHeight + 5}px;
github JacobMacInnis / function-earth / screens / CameraScreen.js View on Github external
const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#000',
  },
  camera: {
    flex: 1,
    justifyContent: 'space-between',
  },
  topBar: {
    flex: 0.2,
    backgroundColor: 'transparent',
    flexDirection: 'row',
    justifyContent: 'space-around',
    paddingTop: Constants.statusBarHeight / 2,
  },
  bottomBar: {
    paddingBottom: isIPhoneX ? 25 : 5,
    backgroundColor: 'transparent',
    alignSelf: 'flex-end',
    justifyContent: 'space-between',
    flex: 0.12,
    flexDirection: 'row',
  },
  noPermissions: {
    flex: 1,
    alignItems:'center',
    justifyContent: 'center',
    padding: 10,
  },
  gallery: {
github wcandillon / can-it-be-done-in-react-native / season2 / spotify-header / components / Model.tsx View on Github external
import { Dimensions } from "react-native";
import { Constants } from "expo";

const {height} = Dimensions.get("window");
const φ = (1 + Math.sqrt(5)) / 2;

export const MIN_HEADER_HEIGHT = 64 + Constants.statusBarHeight;
export const MAX_HEADER_HEIGHT = height * (1 - 1 / φ);

export interface Track {
  name: string;
  artist?: string;
}

export interface Album {
  name: string;
  artist: string;
  release: number;
  cover: number | number[];
  tracks: Track[];
}
github barrymichaeldoyle / capo-keys / constants / index.js View on Github external
import { Dimensions } from 'react-native';
import { Constants } from 'expo';

export const SCREEN_HEIGHT = Dimensions.get('window').height;
export const SCREEN_WIDTH = Dimensions.get('window').width;
export const STATUS_BAR_HEIGHT = Constants.statusBarHeight;

export const BUTTON_GROUP_STYLES = {
  containerStyle: {
    height: 40,
    width: SCREEN_WIDTH * 0.9
  },
  buttonStyle: {
    backgroundColor: 'white'
  },
  selectedBackgroundColor: '#2169F3',
  selectedTextStyle: {
    color: 'orange',
    fontWeight: '900'
  }
};