create-expo-stack 2.10.2 → 2.10.3

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.
@@ -1,6 +1,6 @@
1
1
  // Learn more https://docs.expo.io/guides/customizing-metro
2
2
  const { getDefaultConfig } = require('expo/metro-config');
3
- <% if (props.stylingPackage?.name === "nativewind" || "nativewindui") { %>
3
+ <% if (["nativewind", "nativewindui"].includes(props.stylingPackage?.name)) { %>
4
4
  const { withNativeWind } = require("nativewind/metro");
5
5
  <% } %>
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { Link, Stack } from 'expo-router';
2
- <% if (props.stylingPackage?.name === "nativewind" || "nativewindui") {%>
2
+ <% if (["nativewind", "nativewindui"].includes(props.stylingPackage?.name)) {%>
3
3
  import { Text } from 'react-native';
4
4
 
5
5
  import { Container } from '~/components/Container';
@@ -29,7 +29,7 @@ export default function NotFoundScreen() {
29
29
  <% } %>
30
30
 
31
31
  return (
32
- <% if (props.stylingPackage?.name === "nativewind" || "nativewindui") {%>
32
+ <% if (["nativewind", "nativewindui"].includes(props.stylingPackage?.name)) {%>
33
33
  <>
34
34
  <Stack.Screen options={{ title: "Oops!" }} />
35
35
  <Container>
@@ -77,7 +77,7 @@ export default function NotFoundScreen() {
77
77
  );
78
78
  }
79
79
 
80
- <% if (props.stylingPackage?.name === "nativewind" || "nativewindui") { %>
80
+ <% if (["nativewind", "nativewindui"].includes(props.stylingPackage?.name)) { %>
81
81
  const styles = {
82
82
  title: `text-xl font-bold`,
83
83
  link: `mt-4 pt-4`,
@@ -1,5 +1,5 @@
1
1
  import { Link, Stack } from 'expo-router';
2
- <% if (props.stylingPackage?.name === "nativewind" || "natiwindui") {%>
2
+ <% if (["nativewind", "nativewindui"].includes(props.stylingPackage?.name)) {%>
3
3
  import { Text, View } from 'react-native';
4
4
  <% } else if (props.stylingPackage?.name === "unistyles") { %>
5
5
  import { createStyleSheet, useStyles } from 'react-native-unistyles'
@@ -23,7 +23,7 @@ export default function NotFoundScreen() {
23
23
  <% } %>
24
24
 
25
25
  return (
26
- <% if (props.stylingPackage?.name === "nativewind" || "nativewindui") {%>
26
+ <% if (["nativewind", "nativewindui"].includes(props.stylingPackage?.name)) {%>
27
27
  <>
28
28
  <Stack.Screen options={{ title: "Oops!" }} />
29
29
  <View className={styles.container}>
@@ -71,7 +71,7 @@ export default function NotFoundScreen() {
71
71
  );
72
72
  }
73
73
 
74
- <% if (props.stylingPackage?.name === "nativewind" || "nativewindui") { %>
74
+ <% if (["nativewind", "nativewindui"].includes(props.stylingPackage?.name)) { %>
75
75
  const styles = {
76
76
  container: `items-center flex-1 justify-center p-5`,
77
77
  title: `text-xl font-bold`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-expo-stack",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "description": "CLI tool to initialize a React Native application with Expo",
5
5
  "repository": {
6
6
  "type": "git",