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

Commit

Permalink
TextField ViewStyle example
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Laco committed Sep 27, 2018
1 parent 3b26399 commit ac5bd16
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion boilerplate/src/views/shared/text-field/text-field.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import { StoryScreen, Story, UseCase } from "../../../../storybook/views"
import { Text } from "../text"
import { TextField } from "./"
import { State } from "react-powerplug"
import { TextStyle } from "react-native"
import { ViewStyle, TextStyle } from "react-native"

const styleArray: ViewStyle[] = [
{paddingHorizontal: 30},
{borderWidth: 30},
]

const inputStyleArray: TextStyle[] = [
{
Expand Down Expand Up @@ -111,6 +116,7 @@ storiesOf("TextField", module)
onChangeText={value => setState({ value })}
value={state.value}
label="Name"
style={styleArray}
inputStyle={inputStyleArray}
/>
)}
Expand Down

0 comments on commit ac5bd16

Please sign in to comment.