File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ declare module '@ottofeller/epubjs-rn' {
2
+ import React from 'react' ;
3
+
4
+ interface Props {
5
+ style ?: object ;
6
+ src ?: string ;
7
+ flow ?: 'paginated' | 'scrolled' ;
8
+ location ?: string ;
9
+ onLocationChange ?( ) : void ;
10
+ onLocationsReady ?( ) : void ;
11
+ onViewAdded ?( ) : void ;
12
+ beforeViewRemoved ?( ) : void ;
13
+ width : number ;
14
+ height : number ;
15
+ onReady ?( ) : void ;
16
+ themes ?: object ;
17
+ theme ?: string ;
18
+ fontSize ?: number ;
19
+ font ?: string ;
20
+ stylesheet ?: string ;
21
+ script ?: string ;
22
+ minSpreadWidth ?: number ;
23
+ gap ?: number ;
24
+ onPress ?( ev : object ) : void ;
25
+ onDlbPress ?( ev : object ) : void ;
26
+ onLongPress ?( ev : object ) : void ;
27
+ onSelected ?( ev : object ) : void ;
28
+ }
29
+
30
+ export class Epub extends React . Component < Props > { }
31
+
32
+ export class Streamer {
33
+ start ( port : string ) : Promise < object > ;
34
+
35
+ stop ( ) : void ;
36
+
37
+ kill ( ) : void ;
38
+
39
+ add ( url : string ) : void ;
40
+
41
+ check ( url : string ) : Promise < boolean > ;
42
+ get ( url : string ) : void ;
43
+ }
44
+ }
You can’t perform that action at this time.
0 commit comments