Skip to content

Commit

Permalink
fix(ui): tab-view - tab content size
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh committed Sep 23, 2019
1 parent a9904fc commit ea2cc59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/framework/ui/tab/tabView.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import React from 'react';
import {
StyleProp,
StyleSheet,
View,
ViewProps,
ViewStyle,
} from 'react-native';
Expand Down Expand Up @@ -144,6 +143,7 @@ export type TabViewElement = React.ReactElement<TabViewProps>;
* );
* }
* }
*
* ```
*
* @example Inline Styling
Expand Down Expand Up @@ -227,9 +227,7 @@ export class TabView extends React.Component<TabViewProps> {
const { tabs, content } = this.renderComponentChildren(children);

return (
<View
{...derivedProps}
style={[styles.container, style]}>
<React.Fragment>
<TabBar
style={tabBarStyle}
ref={this.tabBarRef}
Expand All @@ -240,13 +238,15 @@ export class TabView extends React.Component<TabViewProps> {
</TabBar>
<ViewPager
ref={this.viewPagerRef}
{...derivedProps}
style={[styles.container, style]}
selectedIndex={selectedIndex}
shouldLoadComponent={this.props.shouldLoadComponent}
onOffsetChange={this.onPagerOffsetChange}
onSelect={this.onPagerSelect}>
{content}
</ViewPager>
</View>
</React.Fragment>
);
}
}
Expand Down

0 comments on commit ea2cc59

Please sign in to comment.