1
import * as React from 'react';
2 3
import { createHostComponent } from '@remax/runtime';
3

4
import { BaseProps } from '../../types/component';
5

6
export interface TextProps extends BaseProps {
7
  selectable?: boolean;
8
  space?: string | boolean;
9
  decode?: boolean;
10
}
11

12 3
export const Text: React.ComponentType<TextProps> = createHostComponent<TextProps>('text');
13

14 3
Text.defaultProps = {
15
  selectable: false,
16
  space: false,
17
  decode: false,
18
};

Read our documentation on viewing source code .

Loading