Skip to content

Commit

Permalink
Merge pull request #7809 from bqrichards/next
Browse files Browse the repository at this point in the history
React-Native: Fix tabs layout issue on simulator
  • Loading branch information
shilman authored Aug 22, 2019
2 parents 9f23f12 + 553db0d commit 53425d4
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PureComponent } from 'react';
import { SafeAreaView } from 'react-native';
import styled from '@emotion/native';
import addons from '@storybook/addons';
import AddonsList from './list';
Expand Down Expand Up @@ -37,20 +38,24 @@ export default class Addons extends PureComponent<{}, { addonSelected: string }>

if (Object.keys(this.panels).length === 0) {
return (
<NoAddonContainer>
<Label>No addons loaded.</Label>
</NoAddonContainer>
<SafeAreaView style={{ flex: 1 }}>
<NoAddonContainer>
<Label>No addons loaded.</Label>
</NoAddonContainer>
</SafeAreaView>
);
}

return (
<Container>
<AddonsList
onPressAddon={this.onPressAddon}
panels={this.panels}
addonSelected={addonSelected}
/>
<AddonWrapper addonSelected={addonSelected} panels={this.panels} />
<SafeAreaView style={{ flex: 1 }}>
<AddonsList
onPressAddon={this.onPressAddon}
panels={this.panels}
addonSelected={addonSelected}
/>
<AddonWrapper addonSelected={addonSelected} panels={this.panels} />
</SafeAreaView>
</Container>
);
}
Expand Down

0 comments on commit 53425d4

Please sign in to comment.