fix: move expo-snack to an export

This commit is contained in:
Mark Lawlor
2022-06-24 12:09:35 +10:00
parent 10a0a94605
commit a1716ffadc
4 changed files with 2 additions and 3 deletions

View File

@@ -1 +0,0 @@
module.exports = require("./dist/expo-snack").default;

View File

@@ -44,7 +44,6 @@
"postcss.js",
"babel.js",
"plugin.js",
"expo-snack.js",
"types.d.ts"
],
"dependencies": {

View File

@@ -50,6 +50,6 @@ function HOC({ component: Component }: { component: ComponentType }) {
);
}
export default function withExpoSnack(component: ComponentType) {
export function withExpoSnack(component: ComponentType) {
return () => <HOC component={component} />;
}

View File

@@ -6,3 +6,4 @@ export type { StyledProps } from "./utils/styled";
export { useColorScheme } from "./use-color-scheme";
export { withPlatformTheme } from "./utils/with-platform-theme";
export { NWRuntimeParser } from "./style-helpers";
export { withExpoSnack } from "./expo-snack";