Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
add lineHeight to toast text
Browse files Browse the repository at this point in the history
  • Loading branch information
soliury committed May 14, 2016
1 parent 7a63ccc commit 396a2df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/base/Toast.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React,{
import React, {
Component,
PropTypes,
View,
Expand All @@ -8,7 +8,7 @@ import React,{
Animated
} from 'react-native';

const { height, width } = Dimensions.get('window');
const {height, width} = Dimensions.get('window');
const toastWidth = width * 0.7;
const defaultText = 'Toast';
const defaultTimeout = 2000;
Expand Down Expand Up @@ -42,7 +42,7 @@ class Toast extends Component {


show(text = defaultText, timeout = defaultTimeout) {
const { duration } = this.props;
const {duration} = this.props;
Animated.timing(this.state.fadeAnim, {
toValue: 1,
duration: duration
Expand Down Expand Up @@ -99,7 +99,8 @@ const styles = StyleSheet.create({
flex: 1,
color: 'white',
fontSize: 16,
textAlign: 'center'
textAlign: 'center',
lineHeight: 16 * 1.5
}
});

Expand Down

0 comments on commit 396a2df

Please sign in to comment.