feat: openStorybook
method & remove async storage & add expo dev menu item
#3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
openStorybook
methodIf user is using
withStorybook
hoc they can useopenStorybook
method from anywhere in the app to enter Storybook mode, they can do it by using theuseSherlo
hookremove async storage
We no more require from users to install
@react-native-async-storage/async-storage
along with sherlo dependencies. We used this storage to hold state if the storybook mode is enabled or not. Now we rely on methods provided by user when configuring Storybook itself -storage
, if they provide storage methods the functionality of holding state between restart of the app will be supportedexpo dev menu item
This is only available in development builds right now but user can open their dev menu and select "Toggle Storybook" list item to control visibility of Storybook, just like bare React Native user can do it from RN Dev menu