Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for button spacer styling and text box text styling #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Assets/Styles/RateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export let RateModalStyles = StyleSheet.create({
width: 130,
} as ViewStyle,

buttonSpacer: {
flex: 1
} as ViewStyle,

button: {
backgroundColor: Color.LightGreen[600],
flex: 0,
Expand Down Expand Up @@ -65,6 +69,10 @@ export let RateModalStyles = StyleSheet.create({
margin: 20,
} as ViewStyle,

textBoxText: {
paddingVertical: 5
} as TextStyle,

title: {
fontSize: 20,
fontWeight: '500',
Expand Down
4 changes: 2 additions & 2 deletions src/Components/ButtonContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { RateModalStyles } from '../Assets/Styles/RateModal';
import { IProps } from '../Interfaces/IButtonContainer';

export function ButtonContainer(props: IProps): JSX.Element {
const { buttonContainer } = RateModalStyles;
const { buttonContainer, buttonSpacer } = RateModalStyles;
const { styles, children } = props;

return (
<View style={[buttonContainer, styles.buttonContainer]}>
<View style={{ flex: 1 }}></View>
<View style={[buttonSpacer, styles.buttonSpacer]}></View>
{children}
</View>
);
Expand Down
2 changes: 1 addition & 1 deletion src/Components/RateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class RateModal extends Component<IProps, IState> {
return (
<TextBox
containerStyle={[RateModalStyles.textBox, styles.textBox]}
textStyle={{ paddingVertical: 5 }}
textStyle={[RateModalStyles.textBoxText, styles.textBoxText]}
value={this.state.review}
placeholder={commentPlaceholderText}
multiline
Expand Down