document-picker/react-native.config.js
Vojtech Novak 66efeab977
chore: migrate example to react-native-test-app (#571)
* chore: add react native test app

* fix: self-review
2022-06-11 10:33:32 +02:00

31 lines
699 B
JavaScript

const path = require('path')
const { androidManifestPath, iosProjectPath } = require('react-native-test-app')
const project = (() => {
try {
return {
android: {
sourceDir: path.join('example', 'android'),
manifestPath: androidManifestPath(path.join(__dirname, 'example', 'android')),
},
ios: {
project: iosProjectPath('example/ios'),
},
}
} catch (e) {
console.error('example config not found', e)
return undefined
}
})()
module.exports = {
dependencies: {
// Help rn-cli find and autolink this library
'react-native-document-picker': {
root: __dirname,
},
},
...(project ? { project } : undefined),
}