nanostores / query

⚡️ Powerful data fetching library for Nano Stores. TS/JS. Framework agnostic.
MIT License
229 stars 10 forks source link

React Native parity #43

Closed dkzlv closed 5 months ago

dkzlv commented 5 months ago

Actually Fixes #42, Fixes #44.

dkzlv commented 5 months ago

@hemandev Would you mind taking a look and possibly even testing it? I'm not really an expert in RN at all, and currently, I think, you're the only RN user we have 😅

I published a beta for this library with a transparent support for RN. You can install it like this: npm install @nanostores/query@beta.

hemandev commented 5 months ago

IMG_0475

I am getting the same error. I'm guessing because its still trying to use nanoquery.umd.cjs instead of nanoquery.native.cjs. I will have to look more into this.

The react-native exports is relatively new, isn't it? Do you know if metro bundler supports it by default?

dkzlv commented 5 months ago

@hemandev Oooh, I see. It's been there for a year already, but it's considered experimental/unstable.

Try again, please! Now you'll need to import like this:

import { nanoquery } from "@nanostores/query/react-native";
dkzlv commented 5 months ago

@hemandev Merging for now, lmk if it doesn't work for you.

sitarass commented 3 months ago

@dkzlv still not working React Native version : 0.73.5 image