native-html / plugins

Plugins for react-native-render-html
MIT License
55 stars 18 forks source link

undefinded is not a function (near '...(0,_reactNativeRenderHtml.domNodeToHTMLString)...') #28

Closed LimanASL closed 3 years ago

LimanASL commented 3 years ago

Oath

I swear that I have completed these tasks before submitting:

Bug Report 

Environment

React Native
Libraries
Devices

Reproduction

Description

Simulator Screen Shot - iPhone 11 - 2020-12-21 at 14 58 02

(Write your steps here:)

  1. Type [npm install --save react-native-render-html] and [pod install] for install the plug-in , there are no error and the table of content display in WebView correctly
  2. Close the metro terminal and re-run the simulator
  3. The error message appear if the HTML component rendering the html including the tag of

    Reproducible Demo

    LimanASL commented 3 years ago

    Package Version as following:

    • "react-native-render-html": "^5.0.1",
    • "@native-html/table-plugin": "^3.1.0",
    • "react-native-webview": "^10.10.2",
    jsamr commented 3 years ago

    @LimanASL I guess you had an outdated react-native-render-html version, is that it?

    LimanASL commented 3 years ago

    @LimanASL I guess you had an outdated react-native-render-html version, is that it?

    Yes. Thank you so much for responding to my issue.

    After remove the node_modules and reinstall the packages, it fixed the issue.

    Followings commands is the references for solving the issue:

    watchman watch-del-all rm -rf node_modules npm cache clean -f npm install npm start -- --reset-cache pod install