* Update to React Native 0.73 * Remove extra package.json * Use yarn 4 * yarn dedupe * Add visionOS support * Apply suggestions from code review Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com> * Update metro config * udpate lock --------- Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
30 lines
650 B
JavaScript
30 lines
650 B
JavaScript
const project = (() => {
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
try {
|
|
const { configureProjects } = require('react-native-test-app');
|
|
|
|
return configureProjects({
|
|
android: {
|
|
sourceDir: path.join('example', 'android'),
|
|
manifestPath: path.join(__dirname, 'example', 'android'),
|
|
},
|
|
ios: {
|
|
sourceDir: 'example/ios',
|
|
},
|
|
});
|
|
} catch (e) {
|
|
return undefined;
|
|
}
|
|
})();
|
|
|
|
module.exports = {
|
|
dependencies: {
|
|
// Help rn-cli find and autolink this library
|
|
'@react-native-menu/menu': {
|
|
root: __dirname,
|
|
},
|
|
},
|
|
...(project ? { project } : undefined),
|
|
};
|