Frameworks
React Native
Flutter
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
This guide will help you to view a document using the Apryse React Native SDK.
If you installed through GitHub, replace App.js
with the code below.
If you set your path variable to point to a local storage file, then the PermissionsAndroid
component is required to ensure that storage permission is properly granted.
Within this example there are several sections of commented out code that work together to handle storage permissions.
Below the example are the types of file paths that are native to iOS or Android and accepted by the DocumentView
component.
If you installed through NPM package, Replace App.js
with the code below.
If you set your path variable to point to a local storage file, then the PermissionsAndroid
component is required to ensure that storage permission is properly granted.
Within this example there are several sections of commented out code that work together to handle storage permissions.
Below the example are the types of file paths that are native to iOS or Android and accepted by the DocumentView
component.
if you are using the npm package use this instead
To open a document from other sources, change the document={path}
line to:
In the root project directory (`/MyApp`), run `react-native run-ios`. Your application should look like this:
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales