How to use react-native-ratings - 1 common examples

To help you get started, we’ve selected a few react-native-ratings 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 pankod / react-native-store-rating / dist / Components / RateModal.js View on Github external
renderRatingView() {
        const { title, buttonContainer, button, buttonCancel, buttonCancelText, } = RateModal_1.RateModalStyles;
        const { starLabels, isVisible, cancelBtnText, totalStarCount, defaultStars, rateBtnText, modalTitle, } = this.props;
        return (react_1.default.createElement(react_1.default.Fragment, null,
            react_1.default.createElement(react_native_1.Text, { style: title }, modalTitle),
            react_1.default.createElement(react_native_ratings_1.AirbnbRating, { count: totalStarCount, defaultRating: defaultStars, size: (width - 150) / 5, showRating: isVisible, reviews: starLabels, onFinishRating: (e) => this.onStarSelected(e) }),
            react_1.default.createElement(react_native_1.View, { style: buttonContainer },
                react_1.default.createElement(react_native_1.View, { style: { flex: 1 } }),
                react_1.default.createElement(Button_1.Button, { text: cancelBtnText, containerStyle: [button, buttonCancel], textStyle: buttonCancelText, onPress: this.onClosed.bind(this) }),
                react_1.default.createElement(Button_1.Button, { text: rateBtnText, containerStyle: button, onPress: this.sendRate.bind(this) }))));
    }
    renderContactFormView() {

react-native-ratings

The standard Ratings component for React Native

MIT
Latest version published 3 years ago

Package Health Score

69 / 100
Full package analysis

Popular react-native-ratings functions