1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Getting Dropbox to work in mobile app

This commit is contained in:
Laurent Cozic
2018-03-27 00:55:44 +01:00
parent 6e994fd8b9
commit 96fb7c2087
9 changed files with 162 additions and 70 deletions

View File

@@ -6,6 +6,7 @@ const { generateSecureRandom } = require('react-native-securerandom');
const FsDriverRN = require('lib/fs-driver-rn.js').FsDriverRN;
const urlValidator = require('valid-url');
const { Buffer } = require('buffer');
const { Linking } = require('react-native');
function shimInit() {
shim.Geolocation = GeolocationReact;
@@ -118,6 +119,10 @@ function shimInit() {
}
shim.Buffer = Buffer;
shim.openUrl = (url) => {
Linking.openURL(url);
}
}
module.exports = { shimInit };