File size: 363 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import {
  Text,
  View,
  Image,
  ImageProps,
  ViewProps,
  TextProps,
} from 'react-native'
import { ComponentClass, ReactNode } from 'react'

export const primitives = {
  View: View as ComponentClass<ViewProps & { children?: ReactNode }>,
  Text: Text as ComponentClass<TextProps & { children?: ReactNode }>,
  Image: Image as ComponentClass<ImageProps>,
}