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

Q: Is it possible to use react-native packages in the Node layer? #32

Open
spsaucier opened this issue Jan 17, 2023 · 2 comments
Open

Comments

@spsaucier
Copy link

In particular, I'd like to use https://github.com/itinance/react-native-fs and https://github.com/bamlab/react-native-image-resizer.

If not, would Node's fs and https://github.com/lovell/sharp work for that (manipulating images in storage) in this layer?

@staltz
Copy link
Member

staltz commented Jan 18, 2023

Why do you want to use react-native-fs in Node when you can just use fs?

And for resizing images, sharp in theory would work but it's a native module so you will have to make sure it compiles correctly for Android (arm / arm64) and iOS (arm64), which depending on the case can be complex. You can also use pure JS modules that manipulate images, like jimp.

@LeandroGeorge
Copy link

I'm also looking for a way to use a react native package (ffmpeg-kit) in the node layer.

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