Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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() {