File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 4
4
"description" : " Autolinking component for React Native" ,
5
5
"author" :
" Josh Swan <[email protected] >" ,
6
6
"main" : " src/index.js" ,
7
+ "types" : " src/index.d.ts" ,
7
8
"license" : " MIT" ,
8
9
"repository" : {
9
10
"type" : " git" ,
Original file line number Diff line number Diff line change
1
+ import { StyleProp , TextStyle } from 'react-native' ;
2
+
3
+ export interface AutolinkProps {
4
+ email ?: boolean ;
5
+ hashtag ?: false | 'facebook' | 'instagram' | 'twitter' ;
6
+ latlng ?: boolean ;
7
+ linkStyle ?: StyleProp < TextStyle > ;
8
+ mention ?: false | 'instagram' | 'soundcloud' | 'twitter' ;
9
+ onPress ?: ( url : string , match : string ) => void ;
10
+ onLongPress ?: ( url : string , match : string ) => void ;
11
+ phone ?: boolean | string ;
12
+ renderLink ?: ( text : string , match : string , index : number ) => void ;
13
+ showAlert ?: boolean ;
14
+ stripPrefix ?: boolean ;
15
+ stripTrailingSlash ?: boolean ;
16
+ style ?: StyleProp < TextStyle > ;
17
+ text : string ;
18
+ truncate ?: number ;
19
+ truncateChars ?: string ;
20
+ truncateLocation ?: 'end' | 'middle' | 'smart' ;
21
+ twitter ?: boolean ;
22
+ url ?: boolean | { schemeMatches ?: boolean ; wwwMatches ?: boolean ; tldMatches ?: boolean ; } ;
23
+ webFallback ?: boolean ;
24
+ }
25
+
26
+ export default class Autolink extends React . PureComponent < AutolinkProps > {
27
+ }
28
+
You can’t perform that action at this time.
0 commit comments