How to use the @freakycoder/react-native-helpers.hasNotch function in @freakycoder/react-native-helpers

To help you get started, we’ve selected a few @freakycoder/react-native-helpers 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 WrathChaos / react-native-gradient-header / lib / src / components / Shape / Shape.style.js View on Github external
export function _position(position) {
  if (!position) {
    let top = hasNotch() ? height * -0.17 : height * -0.25;
    return {
      ...Platform.select({
        ios: {
          top
        },
        android: {
          top: height * -0.185
        }
      })
    };
  }
  return position;
}

@freakycoder/react-native-helpers

All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy use

MIT
Latest version published 3 months ago

Package Health Score

69 / 100
Full package analysis