How to use the react-native.StyleSheet.hairlineWidth function in react-native

To help you get started, we’ve selected a few react-native 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 letsdoitworld / World-Cleanup-Day / mobile-app / src / screens / Settings / components / CountryModal / styles.js View on Github external
export default EStyleSheet.create({
  inputContainer: {
    marginTop: getHeightPercentage(20),
    paddingHorizontal: 5,
  },
  listContainer: {
    marginTop: getHeightPercentage(5),
  },
  loadingContainer: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  item: {
    // height: getHeightPercentage(25),
    borderBottomWidth: StyleSheet.hairlineWidth,
    borderBottomColor: '#bbb',
    justifyContent: 'center',
  },
  itemText: {
    fontSize: 16,
    fontFamily: '$font',
    margin: 10,
    // textAlign: 'center',
  },
});
github letsdoitworld / World-Cleanup-Day / mobile-app / src / screens / EditTrashpoint / styles.js View on Github external
// fontFamily: 'noto-sans-bold',
        fontSize: 16,
    },
    inputContainer: {
        flex: 1,
        marginTop: getHeightPercentage(20),
        position: 'relative',
        height: getHeightPercentage(35),
    },
    tagsContainer: {
        paddingVertical: getWidthPercentage(20),
        paddingHorizontal: getHeightPercentage(20),
        flex: 1,
    },
    divider: {
        height: StyleSheet.hairlineWidth,
        backgroundColor: '#f6f6f6',
    },
    addTagGradient: {
        height: getHeightPercentage(35),
        width: getWidthPercentage(71),
        borderRadius: getWidthPercentage(52),
        justifyContent: 'center',
        alignItems: 'center',
        shadowOffset: { width: 0, height: 0 },
        shadowColor: 'black',
        shadowOpacity: 0.15,
    },
    addTagText: {
        color: '#3E8EDE',
        // fontFamily: 'noto-sans-bold',
        fontSize: 13,
github gaohan1994 / react-native-centerm-sdk / src / component / Theme / Colors.ts View on Github external
export type ColorsType = {
  primary: string;
  infoColor: string;
  deleteColor: string;
  cancelColor: string;
  divider: string;
};

export const Colors = {
  // primary: '#1273e4',
  primary: '#4598f2',
  infoColor: '#eca961',
  deleteColor: '#d75452',
  cancelColor: '#c8c7cd',
  divider: StyleSheet.hairlineWidth < 1 ? '#bcbbc1' : 'rgba(0, 0, 0, 0.12)',
};
github bawn / noder-react-native / app / component / DetailHeader.js View on Github external
}
}

const styles = {
  container: {
    height: 74,
    backgroundColor: 'white',
    flexDirection: 'row',
    justifyContent: 'flex-start',
    alignItems: 'stretch',
    backgroundColor: 'white',
    paddingTop: 10,
    paddingBottom: 10,
    paddingLeft: 16,
    paddingRight: 16,
    borderBottomWidth: StyleSheet.hairlineWidth,
    borderBottomColor: Colors.separatorColor
  },
  separator: {
    height: StyleSheet.hairlineWidth,
    backgroundColor: Colors.separatorColor,
    flex: 1,
  },
  avatar: {
    width: 52,
    height: 52,
    borderRadius: 26,
    borderWidth: StyleSheet.hairlineWidth,
    borderColor: Colors.borderColor,
    backgroundColor: Colors.placeholderColor
  },
  topContent: {
github Skjutsgruppen / skjutsgruppen-reactnative / app / screens / AskDetail.js View on Github external
},
  stopsLabel: {
    color: Colors.text.pink,
    fontWeight: 'bold',
  },
  fromTo: {
    fontSize: 20,
    fontWeight: 'bold',
  },
  date: {
    marginVertical: 12,
  },
  userComment: {
    margin: 24,
    paddingBottom: 24,
    borderBottomWidth: StyleSheet.hairlineWidth,
    borderColor: Colors.border.lightGray,
  },
  relationTitle: {
    width: '100%',
    justifyContent: 'center',
    alignItems: 'flex-end',
    flexDirection: 'row',
    marginHorizontal: 24,
    marginBottom: 6,
  },
  downArrow: {
    height: 12,
    width: 12,
    resizeMode: 'contain',
    position: 'absolute',
    top: 2,
github Skjutsgruppen / skjutsgruppen-reactnative / app / components / common / actionModal.js View on Github external
import PropTypes from 'prop-types';
import * as Animatable from 'react-native-animatable';
import { trans } from '@lang/i18n';
import { Colors } from '@theme';
import TouchableHighlight from '@components/touchableHighlight';
import { AppText } from '@components/utils/texts';

const styles = StyleSheet.create({
  horizontalDivider: {
    borderBottomWidth: StyleSheet.hairlineWidth,
    borderColor: Colors.border.lightGray,
  },
  title: {
    fontWeight: 'bold',
    textAlign: 'center',
    borderBottomWidth: StyleSheet.hairlineWidth,
    borderBottomColor: Colors.border.lightGray,
    paddingVertical: 16,
  },
  modalContent: {
    flex: 1,
    backgroundColor: 'rgba(255,255,255,0.65)',
    justifyContent: 'flex-end',
    padding: 12,
  },
  actionsWrapper: {
    maxHeight: '70%',
    marginTop: 'auto',
    backgroundColor: Colors.background.fullWhite,
    borderRadius: 12,
    overflow: 'hidden',
    marginBottom: 12,
github dev-andremonteiro / react-native-twitter-clone / app / components / Header / index.js View on Github external
{icon}
      
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flexDirection: "row",
    alignItems: "center",
    justifyContent: "space-between",
    paddingHorizontal: 10,
    width: width,
    height: 40,
    borderBottomColor: "#ccc",
    borderBottomWidth: StyleSheet.hairlineWidth
  },
  touchableMask: {
    position: "absolute",
    top: 5,
    left: 10,
    width: 30,
    height: 30,
    zIndex: 9,
    padding: 5
  }
});

export default Header;
github gaoxiaosong / react-native-im / standard / page / ChooseUser.tsx View on Github external
_renderHeader() {
        const style = {
            borderBottomWidth: StyleSheet.hairlineWidth,
            borderBottomColor: delegate.style.separatorLineColor,
        };
        return (
            
        );
    }
github CarGuo / GSYGithubAPP / app / components / IssueDetailPage.js View on Github external
}, itemStyle: {}
        }, {
            itemName: I18n("issueEdit"),
            itemClick: () => {
                Actions.TextInputModal({
                    textConfirm: this.editIssue,
                    titleText: I18n('editIssue'),
                    needEditTitle: true,
                    text: this.state.issue.body,
                    titleValue: issue.title,
                    bottomBar: true,
                    userList: [...this.actionUser.values()]
                })
            }, itemStyle: {
                borderLeftWidth: StyleSheet.hairlineWidth, borderLeftColor: Constant.lineColor,
                borderRightWidth: StyleSheet.hairlineWidth, borderRightColor: Constant.lineColor
            }
        }, {
            itemName: (issue.state === "open") ? I18n('issueClose') : I18n('issueOpen'),
            itemClick: () => {
                Actions.ConfirmModal({
                    titleText: (issue.state === "open") ? I18n('closeIssue') : I18n('openIssue'),
                    text: (issue.state === "open") ? I18n('closeIssueTip') : I18n('openIssueTip'),
                    textConfirm: this.closeIssue
                })
            }, itemStyle: {
                borderRightWidth: StyleSheet.hairlineWidth, borderRightColor: Constant.lineColor
            }
        }, {
            itemName: (issue.locked) ? I18n('issueUnlock') : I18n('issueLocked'),
            itemClick: () => {
                Actions.ConfirmModal({
github gaoxiaosong / react-native-im / standard / page / ContactList.tsx View on Github external
_renderList = () => {
        const {itemHeight} = this.props;
        return (
             item.userId}
                ListHeaderComponent={this._renderHeader}
                separatorHeight={StyleSheet.hairlineWidth}
                stickySectionHeadersEnabled={true}
                itemHeight={itemHeight}
                sectionHeight={delegate.component.SectionHeader.defaultProps.height}
                renderSectionHeader={this._renderSectionHeader}
                initialNumToRender={20}
            />
        );
    };