Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add file viewer

ammarahm-edfeabeb17381b
diff --git a/apps/mobile/.gitignore b/apps/mobile/.gitignore
index d29466c17..2d69b0bc7 100644
--- a/apps/mobile/.gitignore
+++ b/apps/mobile/.gitignore
@@ -62,3 +62,5 @@ buck-out/
# Other
react-native-mmkv-storage/
react-native-eventsource/
+
+react-native-html-to-pdf/
\ No newline at end of file
diff --git a/apps/mobile/android/app/src/main/AndroidManifest.xml b/apps/mobile/android/app/src/main/AndroidManifest.xml
index dfa847866..01a6fb481 100644
--- a/apps/mobile/android/app/src/main/AndroidManifest.xml
+++ b/apps/mobile/android/app/src/main/AndroidManifest.xml
@@ -26,6 +26,17 @@
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
+
+ <provider
+ android:name="com.vinzscam.reactnativefileviewer.FileProvider"
+ android:authorities="${applicationId}.provider"
+ android:exported="false"
+ android:grantUriPermissions="true">
+ <meta-data
+ android:name="android.support.FILE_PROVIDER_PATHS"
+ android:resource="@xml/file_viewer_provider_paths"
+ />
+ </provider>
</application>
</manifest>