Skip to content

Commit

Permalink
Merge pull request #642 from tuoxiansp/expose-reconcider1
Browse files Browse the repository at this point in the history
Expose react reconciler
  • Loading branch information
lavrton authored Mar 24, 2022
2 parents b08ac25 + 1244b7d commit b5b223f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ReactKonvaCore.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// special file for minimal import
import * as React from 'react';
import * as ReactReconciler from 'react-reconciler'
import Konva from 'konva';

export interface KonvaNodeEvents {
Expand Down Expand Up @@ -89,3 +90,4 @@ export var Arrow: KonvaNodeComponent<Konva.Arrow, Konva.ArrowConfig>;
export var Shape: KonvaNodeComponent<Konva.Shape, Konva.ShapeConfig>;

export var useStrictMode: (useStrictMode: boolean) => void;
export var KonvaRenderer: ReactReconciler.Reconciler<any, any, any, any, any>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"url": "[email protected]:konvajs/react-konva.git"
},
"dependencies": {
"@types/react-reconciler": "~0.26.2",
"react-reconciler": "~0.26.2",
"scheduler": "^0.20.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/ReactKonvaCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const Arrow = 'Arrow';
export const Shape = 'Shape';
export const Transformer = 'Transformer';

const KonvaRenderer = ReactFiberReconciler(HostConfig);
export const KonvaRenderer = ReactFiberReconciler(HostConfig);

KonvaRenderer.injectIntoDevTools({
findHostInstanceByFiber: () => null,
Expand Down

0 comments on commit b5b223f

Please sign in to comment.