mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-19 01:36:46 +08:00
fix: move expo-snack to an export
This commit is contained in:
@@ -1 +0,0 @@
|
||||
module.exports = require("./dist/expo-snack").default;
|
||||
@@ -44,7 +44,6 @@
|
||||
"postcss.js",
|
||||
"babel.js",
|
||||
"plugin.js",
|
||||
"expo-snack.js",
|
||||
"types.d.ts"
|
||||
],
|
||||
"dependencies": {
|
||||
|
||||
@@ -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} />;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user