Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Button TextStyle array example
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Laco committed Sep 27, 2018
1 parent 2566c0c commit 3b26399
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion boilerplate/src/views/shared/button/button.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ const buttonStyleArray: ViewStyle[] = [
{borderRadius: 0},
]

const buttonTextStyleArray: TextStyle[] = [
{fontSize: 20},
{color: "#a511dc"}
]

storiesOf("Button", module)
.addDecorator(fn => <StoryScreen>{fn()}</StoryScreen>)
.add("Style Presets", () => (
Expand All @@ -20,7 +25,7 @@ storiesOf("Button", module)
<Button text="Click It" preset="primary" onPress={() => window.alert("pressed")} disabled />
</UseCase>
<UseCase text="Array Style" usage="Button with array style" >
<Button text="Click It" preset="primary" onPress={() => window.alert("pressed")} style={buttonStyleArray} />
<Button text="Click It" preset="primary" onPress={() => window.alert("pressed")} style={buttonStyleArray} textStyle={buttonTextStyleArray} />
</UseCase>
</Story>
))

0 comments on commit 3b26399

Please sign in to comment.