question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Currently not working with Expo SDK 35?

See original GitHub issue

Hi,

I’ve got an app based on Expo that uses react-native-canvas to place a picture on top of an other and then export the result with .toDataURL().

Everything was working fine on Expo 30 but react-native-canvas doesn’t seem to work with Expo 35. Here is the piece of code that I tried:

class App extends Component {
  handleCanvas = (canvas) => {
    const ctx = canvas.getContext('2d');
    ctx.fillStyle = 'purple';
    ctx.fillRect(0, 0, 100, 100);
  }
 
  render() {
    return (
      <Canvas ref={this.handleCanvas}/>
    )
  }
}

And my package.json :

"dependencies": {
    "expo": "^35.0.0",
    "react-native-canvas": "^0.1.23",
    "react-native-webview": "^7.4.2",
   ...
  }

Any help is greatly appreciated!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
seblamblacommented, Oct 17, 2019

Everything seems ok with Expo SDK 35 and these versions:

    "react-native-canvas": "^0.1.34",
    "react-native-webview": "^7.0.5",
    ...

Thanks!

1reaction
seblamblacommented, Oct 17, 2019

I created an Expo Snack, that works on both SDK 33 and SDK 35. I guess the problem comes from my package.json. I’ll get back to you when I find something relevant!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo SDK 35 is now available
Expo SDK v35.0.0 is out today and is based on React Native 0.59, the same ... and 32 projects will no longer work...
Read more >
RNAudioRecorder not working as Expo SDK 35 does ... - GitHub
It is practically impossible to create an audio app and run it using Expo. RNAudioRecorder does not work as Expo SDK 35 does...
Read more >
Expo path problem after updating from` sdk 35` to` sdk 39`
I've updated my app from expo SDK 35 to expo SDK 39 . After updating it fires an error : Failed building JavaScript...
Read more >
Expo SDK 38 is now available - DEV Community ‍ ‍
It looks there is a problem with react native animation after upgrade form 37: Animated: useNativeDriver was not specified. 1 ...
Read more >
Update to React Native 0.60.x | Voters - Expo - Canny
Edit: Here is the https://github.com/expo/expo/issues/5849 related issue ... Brent Vatne any chance upgrading RN to 0.60+ can happen in SDK 35 instead of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found