-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added typings for rn-pdf-reader-js * Added types property in package.json
- Loading branch information
1 parent
8ffac1b
commit 6f6afd1
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
declare module 'rn-pdf-reader-js' { | ||
import { Component } from "react"; | ||
import { StyleProp, ViewStyle, NavState } from 'react-native'; | ||
|
||
interface IProps { | ||
source: { | ||
uri?: string, | ||
base64?: string | ||
}, | ||
style?: StyleProp<ViewStyle>, | ||
webviewStyle?: StyleProp<ViewStyle>, | ||
onLoad?: (event: NavState) => void, | ||
noLoader?: boolean | ||
} | ||
|
||
interface IState { | ||
ready: boolean, | ||
android: boolean, | ||
ios: boolean, | ||
data?: string, | ||
} | ||
|
||
export function removeFilesAsync(): Promise<void>; | ||
|
||
export default class PdfReader extends Component<IProps, IState> {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters