Showing
1 changed file
with
3 additions
and
1 deletions
@@ -11,6 +11,7 @@ const { | @@ -11,6 +11,7 @@ const { | ||
11 | Dimensions, | 11 | Dimensions, |
12 | TouchableOpacity, | 12 | TouchableOpacity, |
13 | WebView, | 13 | WebView, |
14 | + LayoutAnimation, | ||
14 | } = ReactNative; | 15 | } = ReactNative; |
15 | 16 | ||
16 | 17 | ||
@@ -79,6 +80,7 @@ export default class DetailText extends React.Component { | @@ -79,6 +80,7 @@ export default class DetailText extends React.Component { | ||
79 | 80 | ||
80 | handleNavigationChange(navState) { | 81 | handleNavigationChange(navState) { |
81 | let heightT = parseInt(navState.title, 10) || 0; // turn NaN to 0 | 82 | let heightT = parseInt(navState.title, 10) || 0; // turn NaN to 0 |
83 | + LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); | ||
82 | this.setState({ | 84 | this.setState({ |
83 | realContentHeight: heightT, | 85 | realContentHeight: heightT, |
84 | }); | 86 | }); |
@@ -126,5 +128,5 @@ export default class DetailText extends React.Component { | @@ -126,5 +128,5 @@ export default class DetailText extends React.Component { | ||
126 | let {width, height} = Dimensions.get('window'); | 128 | let {width, height} = Dimensions.get('window'); |
127 | 129 | ||
128 | let styles = StyleSheet.create({ | 130 | let styles = StyleSheet.create({ |
129 | - | 131 | + |
130 | }); | 132 | }); |
-
Please register or login to post a comment