mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types/test for react-native-view-pdf * Specify ts version * Specify strictFunctionTypes
14 lines
415 B
TypeScript
14 lines
415 B
TypeScript
import * as React from 'react';
|
|
import PDFView from 'react-native-view-pdf';
|
|
|
|
export default class extends React.Component {
|
|
render(): JSX.Element {
|
|
return (
|
|
<PDFView
|
|
resource="https://www.ets.org/Media/Tests/TOEFL/pdf/SampleQuestions.pdf"
|
|
style={{ flex: 1 }} // custom props are allowed and passed to the underlying element
|
|
/>
|
|
);
|
|
}
|
|
}
|