digitalfabrik/integreat-app

View on GitHub
native/src/testing/wrapWithTheme.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import React, { ReactElement } from 'react'
import { ThemeProvider } from 'styled-components/native'

import buildConfig from '../constants/buildConfig'

const wrapWithTheme = ({ children }: { children: ReactElement }): ReactElement => (
  <ThemeProvider theme={buildConfig().lightTheme}>{children}</ThemeProvider>
)

export default wrapWithTheme