Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility w/ non-Expo projects #81

Open
go-sean-go opened this issue Nov 9, 2023 · 2 comments
Open

Compatibility w/ non-Expo projects #81

go-sean-go opened this issue Nov 9, 2023 · 2 comments

Comments

@go-sean-go
Copy link

Starting in v2.x, is this project no longer compatible with non-Expo projects...?

What are the install/upgrade/etc steps required for projects that are not using Expo?

The docs do not explain it at current - other than to say it uses Expo-Modules, which is not familiar to non-Expo users (or at least not to me!).

@nandorojo
Copy link
Collaborator

Hey, agreed that the docs should explain this better.

This link should explain it. TLDR: npx install-expo-modules@latest should be all you need.

@crusherblack
Copy link

Hi I already tried it using install-expo-modules based on @nandorojo recommendations

Follow this step

npx install-expo-modules

Install babel transform-export-namespace

yarn add @babel/plugin-transform-export-namespace-from --dev

update your babel.config.js

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: ['@babel/plugin-transform-export-namespace-from'],
};

And it work on React Native CLI 0.74.1

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants