Closed tuanluu-agilityio closed 6 years ago
I found the problem on my issue. The storybook working independent with app, so we need import EStyleSheet.build
to index
file of Storybook
.
Thanks all watching.
Thanks for sharing the solution!
I found the problem on my issue. The storybook working independent with app, so we need import
EStyleSheet.build
toindex
file ofStorybook
.Thanks all watching.
This solution works yet. Expo: 47.0.12 React-native: 0.70.5 Storybook: 6.5.16
My .storybook/preview.js
is showed in below:
import EStyleSheet from 'react-native-extended-stylesheet';
EStyleSheet.build({
$theme: 'light', // required variable for caching!
$colorPrimary: '#fff'
});
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};
I got issues when using
react-native-extended-stylesheet
onstorybook
. Look like storybook can't using this lib, it's mean I have using lib on components, but when calling components on storybook stylesheet not working. When I change fromEStylesheet
toStylesheet
, it's working fine. Anyone here have same issue with me and how resolved that?Version: