react-native-opengraph-kit icon indicating copy to clipboard operation
react-native-opengraph-kit copied to clipboard

OpenGraphAwareInput onChange throws error ReferenceError: Can't find variable: event

Open raghava opened this issue 4 years ago • 1 comments

Description of the issue

onChange function props attached to OpenGraphAwareInput throws an error

How to reproduce

Try the below code snippet

Code snippet

<OpenGraphAwareInput 
          showIcon
          onChange={(event) => { console.log(event); }} />

ERROR

 WARN  Possible Unhandled Promise Rejection (id: 4):
ReferenceError: Can't find variable: event
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:141892:38
tryCallOne@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:27024:16
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:27125:27
_callTimer@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:30579:17
_callImmediatesPass@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:30615:19
callImmediates@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:30834:33
callImmediates@[native code]
__callImmediates@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2591:35
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2368:34
__guard@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2574:15
flushedQueue@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2367:21
flushedQueue@[native code]
invokeCallbackAndReturnFlushedQueue@[native code]

Versions

  • React Native version : 0.61.2
  • react-native-opengraph-kit version : ^3.0.0
  • Provide us with a yarn.lock or package-lock.json: https://gist.github.com/raghava/0a372a94f7948c241438624bc81dd2a0

raghava avatar May 09 '21 14:05 raghava

Hi there, would you mind trying with v 3.0.1 please ? 🙂

adrienthiery avatar May 10 '21 07:05 adrienthiery