ammarahm-ed / react-native-jsi-template

Template library and blog that explain how JSI modules are built from scratch in React Native
https://blog.notesnook.com/getting-started-react-native-jsi/
MIT License
163 stars 24 forks source link

In Debug with Chrome,global.helloWorld is not a function #2

Closed coder-log666 closed 3 years ago

coder-log666 commented 3 years ago

I create a new react-native procject

npx react-native init jsiDemo

and drag SimpleJsi.h SimpleJsi.mm example.h example.cpp into ios project. and modify app.js

React.useEffect(() => {
    setResult(global.helloWorld());
  }, []);

everything feels good. image

but when I Debug with Chrome there is a error like this: image

can you help me?

ammarahm-ed commented 3 years ago

I create a new react-native procject

npx react-native init jsiDemo

and drag SimpleJsi.h SimpleJsi.mm example.h example.cpp into ios project. and modify app.js

React.useEffect(() => {
    setResult(global.helloWorld());
  }, []);

everything feels good. image

but when I Debug with Chrome there is a error like this: image

can you help me?

There is no support for chrome debugger in JSI.