Styled components are great. Except I don't know how I can use them with custom RN components.
Example
Suppose I am using KeyboardAwareScrollView and I want to make it's styling reusable through styled components. SafeAreaView works fine but not KeyboardAwareScrollView
Unhandled JS Exception: TypeError: _styledComponents.default.KeyboardAwareScrollView is not a function. (In '_styledComponents.default.KeyboardAwareScrollView(_templateObject())', '_styledComponents.default.KeyboardAwareScrollView' is undefined)
Styled components are great. Except I don't know how I can use them with custom RN components.
Example
Suppose I am using
KeyboardAwareScrollView
and I want to make it's styling reusable through styled components.SafeAreaView
works fine but notKeyboardAwareScrollView
Currently I get an error when I do this:
I get this error
Error
Anyone know a workaround?