Compatibility w/ non-Expo projects
go-sean-go opened this issue · comments
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!).
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.
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](https://private-user-images.githubusercontent.com/53805953/332542454-508c2e06-39ce-4d1d-8416-28643adf5a30.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NzQ5OTMsIm5iZiI6MTcyMDU3NDY5MywicGF0aCI6Ii81MzgwNTk1My8zMzI1NDI0NTQtNTA4YzJlMDYtMzljZS00ZDFkLTg0MTYtMjg2NDNhZGY1YTMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDAxMjQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBlMmMwMDMwMWNjMmQzN2I5ODQ4ZGVkNzY1ZjEyZTkxMWJiZTFhNTQ1YzUxYmU3YjViZDc5NmRmNjlmM2IwNmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Hv_E8B0dBI91x4WnylgY3IFwD8L4bQuHJaRpYmSlCQg)