import { DefaultTheme } from "styled-components/native"; code example
Example: styled components default theme typescript
// import original module declarations
import 'styled-components';
// and extend them!
declare module 'styled-components' {
export interface DefaultTheme {
borderRadius: string;
colors: {
main: string;
secondary: string;
};
}
}