We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dedc041 commit 25f50faCopy full SHA for 25f50fa
src/index.tsx
@@ -305,7 +305,9 @@ export default class RNSketchCanvas extends React.Component<
305
</View>
306
307
<SketchCanvas
308
- ref={(ref) => (this._sketchCanvas = ref)}
+ ref={(ref) => {
309
+ this._sketchCanvas = ref;
310
+ }}
311
style={this.props.canvasStyle}
312
strokeColor={
313
this.state.color +
src/types.tsx
@@ -1,3 +1,4 @@
1
+import type { JSX } from 'react';
2
import type { StyleProp, ViewStyle } from 'react-native';
3
4
export type ImageType = 'png' | 'jpg';
0 commit comments