diff --git a/lib/types/types.d.ts b/lib/types/types.d.ts index 25e92b4..5eeb46d 100644 --- a/lib/types/types.d.ts +++ b/lib/types/types.d.ts @@ -1,6 +1,26 @@ // All of these typings are exported, be careful what you export here! import type { Metro } from '@revenge-mod/modules/types' +import type { + ImageProps, + ScrollViewProps, + TextProps, + ViewProps, +} from 'react-native' + +/// REACT NATIVE COMPONENTS + +declare module 'react' { + namespace JSX { + interface IntrinsicElements { + // TODO(PalmDevs): more intrinsic elements? + RCTView: ViewProps + RCTImage: ImageProps + RCTScrollView: ScrollViewProps + RCTText: TextProps + } + } +} /// HERMES