Code Monkey home page Code Monkey logo

Comments (14)

aik117 avatar aik117 commented on August 27, 2024 2

Followed this, issue solved
react-native-webview/react-native-webview#1312

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on August 27, 2024

Are you use expo init project?

from react-native-signature-canvas.

aik117 avatar aik117 commented on August 27, 2024

No i am using react native cli

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on August 27, 2024

Can you try to use react-native-webview normally?

import React, { Component } from 'react';
import { View } from 'react-native';
import { WebView } from 'react-native-webview';

export default class App extends Component {
  render() {
    const html = `
      <html>
      <head></head>
      <body>
        <script>
          setTimeout(function () {
            window.ReactNativeWebView.postMessage("Hello!")
          }, 2000)
        </script>
      </body>
      </html>
    `;

    return (
      <View style={{ flex: 1 }}>
        <WebView
          source={{ html }}
          onMessage={event => {
            alert(event.nativeEvent.data);
          }}
        />
      </View>
    );
  }
}

https://github.com/react-native-community/react-native-webview/blob/master/docs/Guide.md#communicating-between-js-and-native

from react-native-signature-canvas.

aik117 avatar aik117 commented on August 27, 2024

@YanYuanFE now i am getting this

image

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on August 27, 2024

crypto is your lib of project?

from react-native-signature-canvas.

aik117 avatar aik117 commented on August 27, 2024

@YanYuanFE no i didn't use any crypto library, it's giving error in webview library.

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on August 27, 2024

react-native-webview/react-native-webview#1295, this is a problem of react-native-webview, and fixed of this PR:react-native-webview/react-native-webview#1301, I need to update the version.

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on August 27, 2024

I has release v2.0, you can try to install it.

from react-native-signature-canvas.

aik117 avatar aik117 commented on August 27, 2024

@YanYuanFE still getting the same crypto error after updating both react-native-webview and react-native-signature-canvas.

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on August 27, 2024

And make sure to run development server with --reset-cache flag

from react-native-signature-canvas.

aik117 avatar aik117 commented on August 27, 2024

@YanYuanFE not resolved, still same issue.

from react-native-signature-canvas.

morganbigot avatar morganbigot commented on August 27, 2024

I followed the post: (adding react-native-get-random-values package and importing it from index.js of my project.)
and now have that issue :
null is not an object (evaluating 'RNGetRandomValues.getRandomBase64')

from react-native-signature-canvas.

ivangafa avatar ivangafa commented on August 27, 2024

I have this issue, with latest expo SDK version 39.

from react-native-signature-canvas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.