Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Class components ignore Providers in newer versions of React. #132

@vjsingh

Description

@vjsingh

I'm using Expo with a web project and a native project that are both part of the same package / project / repo.

Is there any suggested way to structure multiple reactn stores for Typescript - one for the web and one for native? Using 'global.d.ts' you can't have multiple store type definitions it seems like.

The obvious answer seems to be to use Providers instead, but just curious if anyone else has come across this use case. I don't see documentation in the Providers readme on how to structure the typescript type definitions

EDIT: I also tried conditionally declaring the module by using a conditional on react-native Platform, but that didn't seem to work either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected.help wantedThe owner cannot resolve this on their own.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions