creactive 0.0.158 → 0.0.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,25 @@ import type { ComponentType, JSX } from 'react';
5
5
  * Return only initial and only react native styles!
6
6
  *
7
7
  * @see https://necolas.github.io/react-native-web/docs/rendering/
8
- * @see https://docs.expo.dev/guides/using-nextjs/
9
- *
10
8
  * @param component - your root component using creactive
11
9
  * @param key - identifies component in the registry if you have multiple
10
+ *
11
+ *
12
+ * Next.js usage example:
13
+ *
14
+ * // next.config.js
15
+ * const nextConfig: NextConfig = {
16
+ * serverExternalPackages: ["creactive/server"],
17
+ * };
18
+ *
19
+ * // layout.tsx
20
+ * export default function Layout({ children }: PropsWithChildren) {
21
+ * return (
22
+ * <html lang="en">
23
+ * <head>{renderReactNativeInitialStyle(() => children)}</head>
24
+ * <body>{children}</body>
25
+ * </html>
26
+ * );
27
+ * }
12
28
  */
13
29
  export type RenderReactNativeInitialStyleHelper = (component: ComponentType, key?: string) => JSX.Element;