jpudysz / react-native-unistyles

Level up your React Native StyleSheet

Home Page:https://unistyl.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calling synchronous methods on native modules is not supported in Chrome

sereda93 opened this issue · comments

Description

I am using react-native-unistyles version 2.0.0 but have some problems when starting debug.

image

Steps to reproduce

  1. npm install react-native-unistyles
  2. Follow the set up guide for react native
  3. open devtools (Debug JS Remotely or Open Debugger(Flipper))

Snack or a link to a repository (optional)

No response

Unistyles version

2.0.0

React Native version

0.72.6

Platforms

Android, iOS

Engine

Hermes

Architecture

Paper (old)

Hey 👋
Library has JSI bindings, so Debug JS Remotely with Chrome won't work.

Also:

Remote JS Debugging with Chrome is deprecated

Source:

react-native-community/discussions-and-proposals#734

For Flipper:

Debugging React Native apps with Flipper is [deprecated in React Native 0.73](https://github.com/react-native-community/discussions-and-proposals/pull/641). We will eventually remove out-of-the box support for JS debugging via Flipper.

Source:

https://reactnative.dev/docs/debugging?js-debugger=flipper

I'm not willing to support deprecated debugging methods, even though you're on version 0.72.

Few solutions:

  • For expo use Expo debugger (j key) - I'm using it and I can confirm that it works out of the box
  • For RN use New Debugger (I haven't try it yet)

Sources: