nandorojo / burnt

Crunchy toasts for React Native. 🍞
MIT License
1.16k stars 36 forks source link

Library doesn't support plain react-native for iOS #24

Closed markiian-rolique closed 10 months ago

markiian-rolique commented 1 year ago

This library doesn't support plain react-native, as root dependencies relies on expo module system, so it's impossible to use it with the plain react-native setup. Would be great if there will be possibility to install it to react-native project without expo

firmnardians commented 11 months ago

That's right, this package can only be used for React Native which uses Expo.

sommoMicc commented 11 months ago

This might be a problem for Tamagui: it means its toasts can be used only on Expo apps!

nandorojo commented 11 months ago

it just depends how you define this. if you’re willing to yarn add expo-modules-core and do a few additional steps it will work with react native CLI.

the react native community cli is an alternate approach with its own trade offs. expo modules makes life way easier for library authors, and they support both new and old architectures, as well as fabric, with very little config for authors. competing starters simply do not have the same DX for library maintainers. this is why almost all RN libraries with native code go stale and stop getting maintenance.

so if you’re willing to install expo modules into your RN CLI app, which is fully doable, it will indeed work.

nandorojo commented 10 months ago

Just a small heads up that I'm considering closing this. I prefer using Expo Modules since it provides a much more stable workflow and lets us use Swift + Fabric together in an easy way. I understand not everyone wants to install Expo Modules into their app, but it just makes it too difficult to maintain without it (which is why most RN libraries go completely silent).

Hope you understand, thanks.