Mohsin

Results 27 comments of Mohsin
trafficstars

I was finally able to achieve this by installing both `@storybook/react` and `@storybook/react-native` in my project. I run the native storybook via `react-native run-ios` and the web storybook via `start-storybook`.

I'm running the CLIs separately, but the source of the stories for both of them is the single React Native stories folder.

Yes, I understand with older versions of RNWeb, Expo, and storybook/react-native work properly. But since the newer version broke this, I have now switched to native app rather than an...

It's not public, but here's the gist of what I did: - Initialized react-native storybook (`npx -p @storybook/cli sb init --type react_native`) - Initialized react storybook (`npx -p @storybook/cli sb...

to add to this, https://github.com/popperjs/react-popper/blob/master/src/usePopper.js#L7, here we are importing the whole package, while https://popper.js.org/docs/v2/tree-shaking/#popper-lite recommends that we should use popper-lite import to enable tree-shaking

@FezVrasta do you mean I should recreate `react-popper`? Because that's all I use in the library.

@FezVrasta my lib is built on top of the render-prop API, which doesn't seem to support it: https://github.com/popperjs/react-popper/blob/master/src/Popper.js#L69 Is there any way to use the "lite" `createPopper` with render props.

@FezVrasta I just tried using the "lite" popper import (`import { createPopper } from '@popperjs/core/lib/popper-lite'`) for `usePopper` hook. But it looks like tree-shaking still doesn't work. Here's the reproduction repo:...