
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@storybook/addon-react-native-server
Advanced tools
Sync up multiple devices via websockets
Note that this package is intended for storybook 7 and newer.
First, install the package.
npm install --save-dev @storybook/addon-react-native-server
Then, register it as an addon in .storybook/main.js
.
// .storybook/main.ts
const config = {
// ...rest of config
addons: [
'@storybook/addon-essentials'
'@storybook/addon-react-native-server', // 👈 register the addon here
],
reactNativeServerOptions: {
host: "localhost",
port: 7007,
},
};
export default config;
Once you have the addon installed it automatically starts a websocket server to listen to events from your mobile devices. You must have reactNativeServerOptions defined and be in development mode for the server to start.
Once the server is running you can reload your mobile device to make sure it connects to the websocket server.
You can also use @storybook/addon-react-native-web to make sure the web version of your stories renders in the browser.
You can use the deviceOnly parameter to avoid rendering some or all stories depending on if you add the parameter at the story or global level.
parameters: { deviceOnly: true },
npm run start
runs bundling in watch mode and starts Storybooknpm run build
build and package your addon codeCode for the server is located in src/preset.ts.
FAQs
Sync up multiple devices via websockets
We found that @storybook/addon-react-native-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.