feat(lib/types): declare react native intrinsic elements
This commit is contained in:
parent
4edc6c3821
commit
7359567b3e
1 changed files with 20 additions and 0 deletions
20
lib/types/types.d.ts
vendored
20
lib/types/types.d.ts
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue