@department-of-veterans-affairs/mobile-component-library
Version:
VA Design System Mobile Component Library
11 lines (10 loc) • 401 B
TypeScript
/** Prevents TypeScript from complaining about importing .svg files directly and
* tells TypeScript which props .svg's can accept
* See: https://github.com/kristerkari/react-native-svg-transformer?tab=readme-ov-file#using-typescript
*/
declare module '*.svg' {
import { SvgProps } from 'react-native-svg'
import React from 'react'
const content: React.FC<SvgProps>
export default content
}