Skip to content

Commit 5824806

Browse files
committed
fix: react 19 implicit-ref-callback-return typescript error
1 parent 7402bcf commit 5824806

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ export default class RNSketchCanvas extends React.Component<
305305
</View>
306306
</View>
307307
<SketchCanvas
308-
ref={(ref) => (this._sketchCanvas = ref)}
308+
ref={(ref) => {
309+
this._sketchCanvas = ref;
310+
}}
309311
style={this.props.canvasStyle}
310312
strokeColor={
311313
this.state.color +

0 commit comments

Comments
 (0)