mirror of
https://github.com/zhigang1992/examples.git
synced 2026-01-12 22:47:03 +08:00
Merge pull request #190 from YassineElbouchaibi/update/#181
Remove yarn.lock from with-storybook #181
This commit is contained in:
@@ -6,4 +6,8 @@ configure(() => {
|
||||
require("./stories");
|
||||
}, module);
|
||||
|
||||
export default getStorybookUI();
|
||||
export default getStorybookUI({
|
||||
// Pass AsyncStorage below if you want Storybook to open your
|
||||
// last visited story after you close and re-open your app
|
||||
asyncStorage: null
|
||||
});
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.9.0",
|
||||
"@expo/webpack-config": "^0.11.11",
|
||||
"@storybook/addon-actions": "^5.2.1",
|
||||
"@storybook/addon-links": "^5.2.1",
|
||||
"@storybook/addons": "^5.2.1",
|
||||
"@storybook/react": "^5.2.1",
|
||||
"@storybook/react-native": "^5.2.3",
|
||||
"@storybook/addon-actions": "~5.2.1",
|
||||
"@storybook/addon-links": "~5.2.1",
|
||||
"@storybook/addons": "~5.2.1",
|
||||
"@storybook/react": "~5.2.1",
|
||||
"@storybook/react-native": "~5.3.19",
|
||||
"@types/react": "~16.9.41",
|
||||
"@types/react-dom": "~16.9.8",
|
||||
"@types/react-native": "~0.62.13",
|
||||
|
||||
@@ -7,7 +7,7 @@ export default {
|
||||
title: 'Font',
|
||||
};
|
||||
|
||||
export function font() {
|
||||
export const CustomFontComponent = () => {
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -36,4 +36,4 @@ export function font() {
|
||||
}
|
||||
|
||||
// On-Device Register
|
||||
storiesOf('Font', module).add('Font', font);
|
||||
storiesOf('Font', module).add('Font', () => (<CustomFontComponent/>));
|
||||
|
||||
14304
with-storybook/yarn.lock
14304
with-storybook/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user