How to use @freakycoder/react-native-helpers - 8 common examples

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 / HeaderContent / HeaderContent.style.js View on Github external
import { Dimensions } from "react-native";
import {
  isAndroid,
  getStatusBarHeight
} from "@freakycoder/react-native-helpers";
const { width } = Dimensions.get("window");

export default {
  container: {
    width,
    flexDirection: "row",
    marginTop: isAndroid ? getStatusBarHeight() + 8 : 8
  },
  leftContainer: {
    left: 16
  },
  dateTextStyle: {
    fontSize: 32,
    color: "white",
    fontWeight: "bold"
  },
  saluteTextStyle: {
    fontSize: 14,
    color: "white",
    fontWeight: "500"
  },
  rightContainer: {
    right: 16,
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;
}
github WrathChaos / react-native-bottom-search-bar / lib / src / BottomSearchBar.style.js View on Github external
export function glueContainer(props) {
  const {
    height,
    iPhoneXHeight,
    borderTopLeftRadius,
    borderTopRightRadius,
    backgroundColor
  } = props;
  return {
    backgroundColor: backgroundColor || "#fff",
    borderTopLeftRadius: borderTopLeftRadius || 24,
    borderTopRightRadius: borderTopRightRadius || 24,
    height: isIPhoneXFamily() ? iPhoneXHeight || height || 100 : height || 80
  };
}
github WrathChaos / react-native-dynamic-search-bar / lib / src / SearchBar.style.js View on Github external
export function ifIPhoneXHeader(noExtraMargin) {
  if (noExtraMargin) return { marginTop: 16 };
  return {
    marginTop: isIPhoneXFamily() ? 44 : 16
  };
}
github WrathChaos / react-native-helpers / example / App.js View on Github external
);
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    top: "15%",
    alignItems: "center",
    backgroundColor: "#fff"
  },
  titleStyle: {
    fontSize: normalizeText(24),
    fontWeight: "700",
    paddingBottom: 36
  }
});

@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 1 month ago

Package Health Score

73 / 100
Full package analysis