You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
I would like to use ExpoPixi.Sketch component to be able to draw on existing picture. I can drawing but image that I would like to use as a background don't show on my screen, please help me.
my code
import Expo from 'expo';
import * as ExpoPixi from 'expo-pixi';
import React, { Component } from 'react';
import { Image, StyleSheet, View, ImageBackground, background } from 'react-native';
export default class App extends Component {
state = {
image: null,
strokeColor: 20,
strokeWidth: 0x000000,
};
Helllo,
I would like to use ExpoPixi.Sketch component to be able to draw on existing picture. I can drawing but image that I would like to use as a background don't show on my screen, please help me.
my code
import Expo from 'expo';
import * as ExpoPixi from 'expo-pixi';
import React, { Component } from 'react';
import { Image, StyleSheet, View, ImageBackground, background } from 'react-native';
export default class App extends Component {
state = {
image: null,
strokeColor: 20,
strokeWidth: 0x000000,
};
onChangeAsync = async ({ width, height }) => {
const options = {
format: 'png',
quality: 0.1,
result: 'file',
height,
width,
};
const uri = await Expo.takeSnapshotAsync(this.sketch, options);
this.setState({
image: { uri },
strokeWidth: 20,
strokeColor: 0x000000,
});
};
onReady = () => {
console.log('ready!');
};
render() {
console.disableYellowBox = true;
return (
}
}
Thanks a lot
The text was updated successfully, but these errors were encountered: