diff --git a/src/Interactable.tsx b/src/Interactable.tsx index 0bfc25c7..df88f640 100644 --- a/src/Interactable.tsx +++ b/src/Interactable.tsx @@ -264,7 +264,7 @@ interface Boundaries { bounce?: number; } -interface InteractableProps { +export interface InteractableProps { snapPoints: SnapPoint[]; springPoints?: SpringPoint[]; gravityPoints?: GravityPoint[]; @@ -286,7 +286,7 @@ interface InteractableProps { boundaries?: Boundaries; } -export default class Interactable extends React.PureComponent< +export class Interactable extends React.PureComponent< InteractableProps > { static defaultProps = { diff --git a/src/index.ts b/src/index.ts index 4731bb1f..1bb775f7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ export { default as ReText } from "./ReText"; -export { default as Interactable } from "./Interactable"; +export * from "./Interactable"; export * from "./Math"; export * from "./Colors"; export * from "./AnimationRunners";