-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
932 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import * as React from "react" | ||
import { storiesOf } from "@storybook/react-native" | ||
|
||
import { StoryScreen, Story, UseCase } from "../../../storybook/views" | ||
|
||
import { Avatar } from "./avatar" | ||
|
||
declare let module | ||
|
||
const IMAGE_SRC = "https://liker.land/logo.png" | ||
|
||
storiesOf("Avatar", module) | ||
.addDecorator(fn => <StoryScreen>{fn()}</StoryScreen>) | ||
.add("Behavior", () => ( | ||
<Story> | ||
<UseCase text="Default" usage="With size 28."> | ||
<Avatar src={IMAGE_SRC} size={28} /> | ||
</UseCase> | ||
<UseCase text="Halo" usage="With size 28 and halo."> | ||
<Avatar src={IMAGE_SRC} size={28} isCivicLiker={true} /> | ||
</UseCase> | ||
<UseCase text="Large" usage="With size 44 and halo."> | ||
<Avatar src={IMAGE_SRC} size={44} isCivicLiker={true} /> | ||
</UseCase> | ||
<UseCase text="XL" usage="With size 128 and halo."> | ||
<Avatar src={IMAGE_SRC} size={128} isCivicLiker={true} /> | ||
</UseCase> | ||
</Story> | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.