react-native-animateable-text icon indicating copy to clipboard operation
react-native-animateable-text copied to clipboard

Can you remove the dependency on React-Native non-exported modules?

Open kidyfirst opened this issue 10 months ago • 0 comments

My project RN Version: 0.79.3, it is match your component peerDependence requirements.

But i got one ERROR when run on local.

  • TypeError: createReactNativeComponentClass is not a function (it is undefined), js engine: hermes

Check the AnimateableText.tsx source code, there are several references to non-public source code. ` const React = require('react'); const ReactNativeViewAttributes = require('react-native/Libraries/Components/View/ReactNativeViewAttributes'); const Touchable = require('react-native/Libraries/Components/Touchable/Touchable');

const createReactNativeComponentClass = require('react-native/Libraries/Renderer/shims/createReactNativeComponentClass').default; const nullthrows = require('nullthrows'); const processColor = require('react-native/Libraries/StyleSheet/processColor'); ` createReactNativeComponentClass is a React Native internal API and has been removed or refactored in newer versions, Do you have any plans to remove references to these modules from the source code?

kidyfirst avatar Jun 18 '25 12:06 kidyfirst