feat(lib/types): declare react native intrinsic elements

This commit is contained in:
PalmDevs 2025-07-16 20:16:57 +07:00
parent 4edc6c3821
commit 7359567b3e
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

20
lib/types/types.d.ts vendored
View file

@ -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