expo-pixi
expo-pixi copied to clipboard
Signature crash app IOS
Hello my app crash without error when I want to use the signature
package.json
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"expo": "^34.0.1",
"expo-gl": "~6.0.0",
"expo-image-picker": "~6.0.0",
"expo-location": "~6.0.0",
"expo-permissions": "~6.0.0",
"expo-pixi": "1.2.0",
"moment": "^2.24.0",
"react": "16.8.3",
"react-dom": "^16.8.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz",
"react-native-base64": "^0.0.2",
"react-native-cardview": "^2.0.3",
"react-native-elements": "^1.2.0",
"react-native-gesture-handler": "~1.3.0",
"react-native-map-link": "^2.5.1",
"react-native-modal-datetime-picker": "^7.5.0",
"react-native-reanimated": "~1.1.0",
"react-native-signature-canvas": "1.5.0",
"react-native-web": "^0.11.4",
"react-navigation": "^4.0.5",
"react-navigation-stack": "^1.7.3",
"react-navigation-tabs": "^2.5.2"
},
"devDependencies": {
"babel-preset-expo": "^6.0.0"
},
"private": true
}
in my component
<View style={styles.sketchContainer}>
<ExpoPixi.Signature
ref={ref => (this.sketch = ref)}
style={styles.sketch}
strokeColor={'#FFFFFF'}
strokeAlpha={1}
onReady={this.onReady}
/>
<TouchableOpacity underlayColor="transparent"
style={[SignStyle.validate, {
borderRadius: 3,
margin: 10,
height: 40,
justifyContent: 'center'
}]}
onPress={this.saveCanvas}>
<Text style={SignStyle.validate}>Valider</Text>
</TouchableOpacity>
</View>
i tried this solution doesn't work https://github.com/expo/expo-pixi/issues/76#issuecomment-490921937.
@EvanBacon i know your busy dude but it would be awesome to get the signature example updated and working again! 👍
For me this crashes on both iOS and Android when navigating to the screen. Using Expo 35.
No errors or warnings given, just a hard crash.
import { Signature } from 'expo-pixi';
<Signature
ref={ref => (this.sketch = ref)}
style={styles.sketch}
strokeColor={'blue'}
strokeAlpha={1}
onChange={() => console.log('Changed')}
onReady={this.onReady}
/>