From d3f5875c05e3220dde7f27a5829dd95200a08012 Mon Sep 17 00:00:00 2001 From: codypearce Date: Mon, 9 Sep 2019 03:40:14 -0700 Subject: [PATCH] 21 create appbar demo --- src/Components/Banner/Banner.stories.js | 50 ++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/src/Components/Banner/Banner.stories.js b/src/Components/Banner/Banner.stories.js index ee302e89..9643b602 100644 --- a/src/Components/Banner/Banner.stories.js +++ b/src/Components/Banner/Banner.stories.js @@ -1,10 +1,13 @@ import React from 'react'; +import { View, StyleSheet, Platform, Dimensions } from 'react-native'; import { storiesOf } from '../../storybook/helpers/storiesOf'; -import { Banner, Avatar } from '../../'; +import { Banner, Avatar, Appbar, Heading, BodyText } from '../../'; import Header from '../../storybook/components/Header'; import Container from '../../storybook/components/Container'; +const pageWidth = Platform.OS == 'web' ? 400 : Dimensions.get('window').width; + /* eslint-disable no-console */ export default storiesOf('Components|Banner', module) .addParameters({ jest: ['Banner'] }) @@ -92,4 +95,49 @@ export default storiesOf('Components|Banner', module) style={{ marginBottom: 40 }} /> + )) + .add('With Appbar', () => ( + + + + + + + + Trivia Page Content + + + + + + )); + +const styles = StyleSheet.create({ + container: { + zIndex: 1, + position: 'relative', + }, + body: { + width: pageWidth, + height: 500, + }, +});