react-native-view-shot icon indicating copy to clipboard operation
react-native-view-shot copied to clipboard

Can't find variable: nextProps

Open meraklis56 opened this issue 7 years ago • 2 comments

#84 # bug report

I am following the guide to install and use the view shot, but instead i get "Can't find variable: nextProps"

Version & Platform

[email protected]
"react-native": "^0.59.10"

Platform: Android, probably iOS

Expected behavior

It should return the screenshot

Actual behavior

It returns a reference error

Steps to reproduce the behavior

onCapture = uri => {
    console.log("do something with ", uri);
};

render() {
        return (
        ....
       <ViewShot onCapture={this.onCapture} captureMode="mount"> 
       <Text>...Something to rasterize...</Text>
       </ViewShot>
      ....
      )
}

meraklis56 avatar Jul 18 '19 13:07 meraklis56

The same problem happened to react native 0.60+

zxf107 avatar Jul 21 '19 01:07 zxf107

this is now fixed.

The new example app also runs with React Native 0.60

gre avatar Aug 10 '19 04:08 gre