expo/examples

Support typescript in storybook

hyochan opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
image

If stories has tsx extension, it won't appear in stories.

Describe the solution you'd like
image

Make tsx extension to appear in stories

P.S. @EvanBacon Thanks for the nice work so far.

Looks like it's an easy solution. Just by changing .storybook/config.js.

import { configure } from "@storybook/react";

// automatically import all files ending in *.stories.js
configure(require.context("../stories", true, /\.stories\.tsx$/), module);