Skip to content

Commit

Permalink
Merge 3137365 into a9904fc
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh committed Sep 23, 2019
2 parents a9904fc + 3137365 commit e7b3fe9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/framework/ui/tab/tabView.component.tsx
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 e7b3fe9

Please sign in to comment.