Skip to content

Autolinking example apps #518

@ShaMan123

Description

@ShaMan123

Autolinking example apps

How do I run an example app from within a library I'm developing?
Formerly it was done using metro.config.js and manual linking.
How can I do it with autolinking?

I tried configuring react-native.config.js and got this error on android:
Multiple projects in this build have project directory

It is very unclear how to configure projects/dependencies using react-native.config.js

Thanks

example/react-native.config.js

module.exports = {
    // config for a library is scoped under "dependency" key
    dependencies: {
        'lib-in-dev': {
            root: '..',
            platforms: {
                android: {
                    sourceDir: '../android'
                }
            }
        }
    },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions