|
|
@@ -171,27 +171,30 @@ export default class Notification extends Component {
|
|
|
}
|
|
|
if (this.state.pageAdapter.length > 0) {
|
|
|
return (
|
|
|
- <Tab.Navigator
|
|
|
- style={styles.container}
|
|
|
- screenOptions={{
|
|
|
- lazy: isIOS,
|
|
|
- lazyPreloadDistance: 2,
|
|
|
- ...this.tabBarStyle
|
|
|
- }}
|
|
|
- backBehavior={() => this.backPage()}>
|
|
|
- { this.state.pageAdapter.map((item, index) =>
|
|
|
- <Tab.Screen
|
|
|
- key={index}
|
|
|
- name={item.name}
|
|
|
- component={item.component}
|
|
|
- options={{
|
|
|
- title: item.title,
|
|
|
- tabBarAllowFontScaling: false,
|
|
|
- tabBarBadge: () => this.getBadgeText(index)
|
|
|
- }}
|
|
|
- />
|
|
|
- )}
|
|
|
- </Tab.Navigator>
|
|
|
+ <View style={styles.container}>
|
|
|
+ <Tab.Navigator
|
|
|
+ style={styles.container}
|
|
|
+ screenOptions={{
|
|
|
+ lazy: isIOS,
|
|
|
+ lazyPreloadDistance: 2,
|
|
|
+ swipeEnabled: true,
|
|
|
+ ...this.tabBarStyle
|
|
|
+ }}
|
|
|
+ backBehavior={() => this.backPage()}>
|
|
|
+ { this.state.pageAdapter.map((item, index) =>
|
|
|
+ <Tab.Screen
|
|
|
+ key={index}
|
|
|
+ name={item.name}
|
|
|
+ component={item.component}
|
|
|
+ options={{
|
|
|
+ title: item.title,
|
|
|
+ tabBarAllowFontScaling: false,
|
|
|
+ tabBarBadge: () => this.getBadgeText(index)
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </Tab.Navigator>
|
|
|
+ </View>
|
|
|
);
|
|
|
} else {
|
|
|
return <ListAlerts {...this.props} showUnread={true}/>
|