How to use react-native-responsive - 10 common examples

To help you get started, we’ve selected a few react-native-responsive 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 Bit-Nation / BITNATION-Pangea-mobile / src / PangeaCore / UI / Key / Verify / VerifyKeySuccess / styles.js View on Github external
// @flow

import { MediaQueryStyleSheet } from 'react-native-responsive';

import GlobalStyles from 'pangea-common-reactnative/styles';

const styles = MediaQueryStyleSheet.create({
  ...GlobalStyles,
});
export default styles;
github Bit-Nation / BITNATION-Pangea-mobile / src / PangeaCore / UI / Dapp / QRCodeScanner / styles.js View on Github external
// @flow

import { MediaQueryStyleSheet } from 'react-native-responsive';

import GlobalStyles from 'pangea-common-reactnative/styles';

const styles = MediaQueryStyleSheet.create({
  ...GlobalStyles,
});

export default styles;
github Bit-Nation / BITNATION-Pangea-mobile / src / PangeaCore / UI / Key / Verify / VerifyKeyInstructionScreen / styles.js View on Github external
// @flow

import { MediaQueryStyleSheet } from 'react-native-responsive';

import GlobalStyles from 'pangea-common-reactnative/styles';

const styles = MediaQueryStyleSheet.create({
  ...GlobalStyles,
});

export default styles;
github Bit-Nation / BITNATION-Pangea-mobile / src / screens / WalletScreen / EmptyState / styles.js View on Github external
// @flow

import { MediaQueryStyleSheet } from 'react-native-responsive';

import GlobalStyles from '../../../global/Styles';

const styles = MediaQueryStyleSheet.create({
  ...GlobalStyles,
});

export default styles;
github Bit-Nation / BITNATION-Pangea-mobile / src / PangeaCommonReactNative / UI / PanelViewAlert.js View on Github external
const PanelViewAlert = ({ status }: Props) => {
  const styles = MediaQueryStyleSheet.create({
    ...GlobalStyles,
  });

  return (
    
  );
};
github Bit-Nation / BITNATION-Pangea-mobile / src / PangeaCommonReactNative / UI / SwitchLabeled.js View on Github external
const SwitchLabeled = ({
  onValueChange, value, label, align, disabled,
}:Props) => {
  const styles = MediaQueryStyleSheet.create({
    ...GlobalStyles,
  });

  const switchStyle = [styles.switchContainer];
  if (align === 'right') {
    switchStyle.push({
      flexDirection: 'row-reverse',
    });
  }

  const textStyle = [styles.formSwitchLabelText];
  if (disabled) {
    textStyle.push(styles.disabledText);
  }

  return (
github Bit-Nation / BITNATION-Pangea-mobile / src / components / common / SwitchLabeled.js View on Github external
const SwitchLabeled = ({
  onValueChange, value, label, align, disabled,
}:Props) => {
  const styles = MediaQueryStyleSheet.create({
    ...GlobalStyles,
  });

  const switchStyle = [styles.switchContainer];
  if (align === 'right') {
    switchStyle.push({
      flexDirection: 'row-reverse',
    });
  }

  const textStyle = [styles.formSwitchLabelText];
  if (disabled) {
    textStyle.push(styles.disabledText);
  }

  return (
github Bit-Nation / BITNATION-Pangea-mobile / src / PangeaCore / UI / components / PopOverModal / index.js View on Github external
onCancel: () => void,
  /**
   * @desc Modal visibility
   */
  visible: boolean,
  /**
   * @desc Array of available options on menu.
   */
  options: Array,
  /**
   * @desc Text description
   */
  desText?: string,
};

const styles = MediaQueryStyleSheet.create({
  ...GlobalStyles,

  lucyButtonStyle: {
    bottom: getTabBarHeight() + 20,
  },
  modalMoreContainer: {
    flex: 1,
    backgroundColor: Colors.lightFade,
    paddingHorizontal: 10,
    paddingTop: GlobalStyles.statusBar.height + 8,
    alignItems: 'center',
    justifyContent: 'flex-start',
  },
  modalWrapContent: {
    backgroundColor: Colors.Transparent,
    width: '100%',
github Bit-Nation / BITNATION-Pangea-mobile / src / PangeaCommonReactNative / UI / BodyParagraph.js View on Github external
const BodyParagraph = ({ text }: Props) => {
  const styles = MediaQueryStyleSheet.create({
    ...GlobalStyles,
  });

  return (
    
  );
};
github Bit-Nation / BITNATION-Pangea-mobile / src / PangeaCommonReactNative / UI / PanelViewCitizen.js View on Github external
import i18n from 'pangea-common/i18n';
import AssetsImages from '../assets/AssetsImages';

type Props = {
  /**
   * @desc Name of the Nation of citizenship
   */
  nationName?: string,
};

/**
 * @desc Component that renders the panel indicating the user is Citizen of a Nation
 * @return {React.Component} A component.
 */

const styles = MediaQueryStyleSheet.create({
  ...GlobalStyles,
});

const PanelViewCitizen = ({ nationName }: Props) => (
  
);

PanelViewCitizen.defaultProps = {
  nationName: '',
};

react-native-responsive

A React Native module to manage responsive layouts more efficiently

MIT
Latest version published 7 years ago

Package Health Score

39 / 100
Full package analysis

Popular react-native-responsive functions