meteor-react-native icon indicating copy to clipboard operation
meteor-react-native copied to clipboard

Remove dependency on batched updates native feature

Open TheRealNate opened this issue 4 years ago • 2 comments
trafficstars

In src/Data.js, the batched updates feature is being used from ReactNative's shims. This dependency needs to be removed to make the package work without native (e.g. for react-native-web)

TheRealNate avatar Dec 11 '20 20:12 TheRealNate

I'll start looking into, I've been trying to make the package work with react-native-web

da314pc avatar Dec 18 '20 20:12 da314pc

@TheRealNate Solution I came up with,

use react-dom as a peer dependency,

Were going to have seperate imports based on if this project is web or native,

But I just forked the lib,

changed: import {unstable_batchedUpdates} from "react-dom"

db.batchedUpdates = unstable_batchedUpdates;

There will be a webpack config issue, for Accounts.

I just used the old version of this project based on https://github.com/inProgress-team/react-native-meteor

da314pc avatar Dec 18 '20 20:12 da314pc

Closing this issue due to no activity. Feel free to reopen.

github-actions[bot] avatar Dec 02 '22 02:12 github-actions[bot]