styled_components_1.default.Text is not a function
styled-components: 3.1.6
typescript: 2.7.1
Run a simple test
import 'react-native'
import * as React from 'react'
import App from '../App'
import * as renderer from 'react-test-renderer'
it('renders correctly', () => {
const tree = renderer.create(
<App />
)
})
Test does not fail
TypeError: styled_components_1.default.Text is not a function
3 | import { palette } from 'styled-theme'
4 |
> 5 | export const SmallTextWrapper = styled.Text`
6 | font-size: 10px;
7 | `
8 |
Any idea @kitten? I'm not familiar with how the react native impl works.
Duplicate of #1495
Most helpful comment
import styled from 'styled-components/native';