creactive 0.0.159 → 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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creactive",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.160",
|
|
4
4
|
"main": "build/default.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@emotion/styled": ">= 11 < 12",
|
|
47
47
|
"react": ">= 18 <= 19",
|
|
48
48
|
"react-dom": ">= 18 <= 19",
|
|
49
|
-
"react-native": ">= 0.76 <= 0.
|
|
49
|
+
"react-native": ">= 0.76 <= 0.85",
|
|
50
50
|
"react-native-svg": ">= 15.8.0 < 16",
|
|
51
51
|
"react-native-svg-web": ">= 1.0.0 < 2.0.0",
|
|
52
52
|
"react-native-web": ">= 0.19.10"
|