zerodays / react-native-gen-ui

A Generative UI library for React Native.
https://www.npmjs.com/package/react-native-gen-ui
MIT License
78 stars 7 forks source link

Expo/Fetch Support #21

Open AdzeB opened 3 hours ago

AdzeB commented 3 hours ago

Feature Request

Feature Request: I wanted to ask if there are any plans to introduce Expo/Fetch, which now supports streaming, as an alternative to react-native-sse. This could potentially simplify development and improve performance, especially for cross-platform projects. Additionally, I was wondering if there are plans to provide an example repository that demonstrates how to use your backend API as a proxy (if that's feasible).

I read in a blog post that someone asked if this library could support the web. The reply mentioned that it doesn't support the web due to react-native-sse. With the new Expo/Fetchlibrary, I believe web support could become viable, which would significantly expand the library's usability.

Describe the solution you'd like: Replace or supplement react-native-sse with the new Expo/Fetch library to enable streaming and cross-platform support (including web). Provide an example repository showcasing how to integrate the library with your backend API, especially for use as a proxy.

Drawbacks to Consider: Transitioning fromreact-native-sse might introduce breaking changes or require additional effort for existing users to migrate. Adoption of Expo/Fetch may need careful testing to ensure compatibility across platforms and with existing features.

Describe alternatives you've considered: Native Implementation: Mike is working on a native implementation for streaming, which includes support for files. According to his recent updates, the release is expected soon: Mike's Tweet.