document-picker/react-native.config.js
Vojtech Novak fc1c0f2d24
feat: new architecture support (#649)
* feat: rn 70 ios builds with new arch

* feat: android migration wip

* fix: update test-app, react-native and react version, fix codegen config

* fix: change spec for backward compat

* fix: simplify android code and make it work

* fix: ios code

* fix: remove unnecessary folly version

* fix: srcDirs on paper

* refactor: review

* refactor: review

* refactor: node 18

* docs: new arch in readme

* docs: new arch in readme

* refactor: use Spec

---------

Co-authored-by: Wojciech Lewicki <wojciech.lewicki@swmansion.com>
2023-05-15 21:56:02 +02:00

31 lines
683 B
JavaScript

const path = require('path')
const { androidManifestPath } = require('react-native-test-app')
const project = (() => {
try {
return {
android: {
sourceDir: path.join('example', 'android'),
manifestPath: androidManifestPath(path.join(__dirname, 'example', 'android')),
},
ios: {
sourceDir: path.join('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),
}