I get the below error on iOS as a dismissable error. (pressing esc button hides the error and shows my app.)
Invalid YGDirection 'row' should be one of: (inherit, ltr, rtl) - React Native
I am using styled components on my project but I don't think this error caused by the component.
Since react-native uses flex layout, we should be able to use the flex-direction attribute.
My wrapper component is below:
const Wrapper = styled.View`
flex: 1;
align-items: ${props => props.align};
justify-content: ${props => props.justify};
flex-direction: ${props => props.direction};
flex-grow: ${props => props.grow};
flex-shrink: ${props => props.shrink};
`;
Wrapper.defaultProps = {
direction: 'column',
align: 'flex-start',
justify: 'flex-start',
grow: 1,
shrink: 0,
};
Am I missing something?
The full error is something like below:
