inokawa / react-native-react-bridge

An easy way to integrate your React (or Preact/React Native Web) app into React Native app with WebView.
https://www.npmjs.com/package/react-native-react-bridge
MIT License
256 stars 18 forks source link

After upgrading react-native-react-bridge 0.12.0 and react-native 0.74, this library does not working like before #181

Open FireAnt-Media opened 3 months ago

FireAnt-Media commented 3 months ago

Describe the bug After upgrading react-native-react-bridge 0.12.0 and react-native 0.74, this library does not working like before.

To Reproduce With a simple code snippet like the following, the App still reports the error "Property 'name' doesn't exist". Previous versions of react-native still worked normally.

import React from 'react';
import {webViewRender} from 'react-native-react-bridge/lib/web';

const Root = () => {
  const name = 'Peter';

  return <div>{`Hello ${name}`}</div>;
};

export default webViewRender();

Expected behavior The app render "Hello Peter"

Platform:

Additional context No