Storybook Backgrounds Addon for React Native can be used to change background colors of your stories right from the device.
yarn add -D @storybook/addon-ondevice-backgrounds @storybook/addons
Then, add following content to .storybook/main.js
:
module.exports = {
addons: ['@storybook/addon-ondevice-backgrounds'],
};
See the example of using the Backgrounds Addon with Component Story Format. You can also run the react-native app to see it in action.
The web Backgrounds Addon documentation may also be useful, but the examples there have not been tested with Storybook for React Native.