This repository was archived by the owner on Jun 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import React , { ReactNode } from "react" ;
2+ import { StyleProp , TextStyle , TextProps } from "react-native" ;
3+
4+ export interface SelectableTextProps {
5+ value ?: string ;
6+ onSelection ?: ( args : {
7+ eventType : string ;
8+ content : string ;
9+ selectionStart : number ;
10+ selectionEnd : number ;
11+ } ) => void ;
12+
13+ menuItems ?: string [ ] ;
14+ highlights ?: Array < { id : string ; start : number ; end : number } > ;
15+ highlightColor ?: string ;
16+ style ?: StyleProp < TextStyle > ;
17+ onHighlightPress ?: ( id : string ) => void ;
18+ appendToChildren ?: ReactNode ;
19+ TextComponent ?: ReactNode ;
20+ textValueProp ?: string ;
21+ textComponentProps ?: TextProps ;
22+ }
23+
24+ export class SelectableText extends React . Component < SelectableTextProps > { }
Original file line number Diff line number Diff line change 33 "version" : " 1.5.0" ,
44 "description" : " React Native component used to provide the features of pass different context menu items and events" ,
55 "main" : " index.js" ,
6+ "types" : " index.d.ts" ,
67 "homepage" : " https://github.com/Astrocoders/react-native-selectable-text" ,
78 "scripts" : {
89 "test" : " echo \" Error: no test specified\" && exit 1"
You can’t perform that action at this time.
0 commit comments