/* eslint-disable react/react-in-jsx-scope */ import React from 'react'; import type { Preview } from '@storybook/react'; {{#if hasAnyGluestackUIOption}} import { GluestackUIProvider } from '@gluestack-ui/themed'; import { StyleSheet, View } from 'react-native'; {{#if hasGluestackUIDefaultTheme}} import {config } from '@gluestack-ui/config'; {{else if hasGluestackUIEjected}} import { config } from '../config/gluestack-ui.config'; {{/if}} {{/if}} export const parameters = { controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, }; export const decorators = [ Story => ( {{#if hasGluestackUI}}{{else if hasGluestackUICore}}{{/if}} {{#if hasAnyGluestackUIOption}}{{/if}} ), ]; const preview: Preview = { parameters: parameters, decorators: decorators, }; export default preview; const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', }, });