Skip to content

Commit 7bebdd7

Browse files
committed
chore(native): use ThemeProvider, x from index
1 parent 768b7d1 commit 7bebdd7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/styled-components-native/src/styled.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from 'react'
22
import '@testing-library/jest-native/extend-expect'
33
import { render, cleanup, screen } from '@testing-library/react-native'
4-
import { ThemeProvider } from 'styled-components/native'
5-
import styled, { css, system } from '.'
4+
import styled, { css, system, ThemeProvider } from '.'
65
import { Text, View } from 'react-native'
76

87
afterEach(cleanup)
@@ -14,6 +13,7 @@ describe('#styled', () => {
1413
padding: 4;
1514
margin-top: 2px;
1615
`
16+
1717
render(<Dummy testID="dummy" />)
1818

1919
expect(screen.getByTestId('dummy')).toHaveStyle({

packages/styled-components-native/src/x.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from 'react'
22
import '@testing-library/jest-native/extend-expect'
33
import { render, cleanup, screen } from '@testing-library/react-native'
4-
import { ThemeProvider } from 'styled-components/native'
5-
import { x } from '.'
4+
import { x, ThemeProvider } from '.'
65
import { Text, View } from 'react-native'
76

87
afterEach(cleanup)

0 commit comments

Comments
 (0)