Skip to content

Commit

Permalink
Fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
michalochman committed Feb 23, 2019
1 parent 20298f0 commit d354c82
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/src/AnimatedExample/animatedPixiTarget.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Sprite, applyProps } from "react-pixi-fiber";
import { Sprite, applyDisplayObjectProps } from "react-pixi-fiber";
import * as Animated from "animated";
import * as PIXI from "pixi.js";

function ApplyAnimatedValues(instance, props) {
if (instance instanceof PIXI.DisplayObject) {
applyProps(instance, {}, props);
applyDisplayObjectProps(instance, {}, props);
} else {
return false;
}
Expand Down
14 changes: 12 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,21 @@ import { AppContext, AppProvider, withApp } from "./AppProvider";
import Stage from "./Stage";
import { TYPES } from "./types";
import { render } from "./render";
import { applyProps, unstable_batchedUpdates } from "./ReactPixiFiber";
import { unstable_batchedUpdates } from "./ReactPixiFiber";
import { applyDisplayObjectProps } from "./ReactPixiFiberComponent";

/* Public API */

export { AppContext, AppProvider, CustomPIXIComponent, Stage, applyProps, render, withApp, unstable_batchedUpdates };
export {
AppContext,
AppProvider,
CustomPIXIComponent,
Stage,
applyDisplayObjectProps,
render,
withApp,
unstable_batchedUpdates,
};

export const BitmapText = TYPES.BITMAP_TEXT;
export const Container = TYPES.CONTAINER;
Expand Down

0 comments on commit d354c82

Please sign in to comment.