@nishant0121/set-it-up 0.0.5 → 0.0.7

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.
package/README.md CHANGED
@@ -36,10 +36,10 @@ npx @nishant0121/set-it-up
36
36
 
37
37
  ## Usage
38
38
 
39
- Run the setup command in your terminal:
39
+ Run the tool in your terminal:
40
40
 
41
41
  ```bash
42
- setup
42
+ forge
43
43
  ```
44
44
 
45
45
  Follow the prompts to:
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nishant0121/set-it-up",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "A high-performance CLI tool to bootstrap and forge new projects with pre-configured templates, prerequisite checking, and interactive setup.",
5
5
  "license": "ISC",
6
6
  "author": "Nishant Patil",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "bin": {
10
- "setup": "bin/index.js"
10
+ "forge": "bin/index.js"
11
11
  },
12
12
  "scripts": {
13
13
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -23,4 +23,4 @@
23
23
  "inquirer": "^13.1.0",
24
24
  "ora": "^9.0.0"
25
25
  }
26
- }
26
+ }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { NavigationContainer } from '@react-navigation/native';
3
3
  import { createNativeStackNavigator } from '@react-navigation/native-stack';
4
+ import { SafeAreaProvider } from 'react-native-safe-area-context';
4
5
  import HomeScreen from './src/pages/HomeScreen';
5
6
  import DetailsScreen from './src/pages/DetailsScreen';
6
7
 
@@ -8,13 +9,13 @@ const Stack = createNativeStackNavigator();
8
9
 
9
10
  function App() {
10
11
  return (
11
- <NavigationContainer>
12
- <Stack.Navigator screenOptions={{ headerShown: false }}>
13
- <Stack.Screen name="Home" component={HomeScreen} />
14
- <Stack.Screen name="Details" component={DetailsScreen} />
15
- </Stack.Navigator>
16
- </NavigationContainer>
12
+ <SafeAreaProvider>
13
+ <NavigationContainer>
14
+ <Stack.Navigator screenOptions={{ headerShown: false }}>
15
+ <Stack.Screen name="Home" component={HomeScreen} />
16
+ <Stack.Screen name="Details" component={DetailsScreen} />
17
+ </Stack.Navigator>
18
+ </NavigationContainer>
19
+ </SafeAreaProvider>
17
20
  );
18
21
  }
19
-
20
- export default App;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { NavigationContainer } from '@react-navigation/native';
3
3
  import { createNativeStackNavigator } from '@react-navigation/native-stack';
4
+ import { SafeAreaProvider } from 'react-native-safe-area-context';
4
5
  import HomeScreen from './src/pages/HomeScreen';
5
6
  import DetailsScreen from './src/pages/DetailsScreen';
6
7
 
@@ -8,12 +9,14 @@ const Stack = createNativeStackNavigator();
8
9
 
9
10
  function App(): React.JSX.Element {
10
11
  return (
11
- <NavigationContainer>
12
- <Stack.Navigator screenOptions={{ headerShown: false }}>
13
- <Stack.Screen name="Home" component={HomeScreen} />
14
- <Stack.Screen name="Details" component={DetailsScreen} />
15
- </Stack.Navigator>
16
- </NavigationContainer>
12
+ <SafeAreaProvider>
13
+ <NavigationContainer>
14
+ <Stack.Navigator screenOptions={{ headerShown: false }}>
15
+ <Stack.Screen name="Home" component={HomeScreen} />
16
+ <Stack.Screen name="Details" component={DetailsScreen} />
17
+ </Stack.Navigator>
18
+ </NavigationContainer>
19
+ </SafeAreaProvider>
17
20
  );
18
21
  }
19
22
 
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, Text, StyleSheet, TouchableOpacity, SafeAreaView } from 'react-native';
2
+ import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
3
+ import { SafeAreaView } from 'react-native-safe-area-context';
3
4
 
4
5
  export default function DetailsScreen({ navigation }) {
5
6
  return (
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, Text, StyleSheet, TouchableOpacity, SafeAreaView } from 'react-native';
2
+ import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
3
+ import { SafeAreaView } from 'react-native-safe-area-context';
3
4
  import { NativeStackScreenProps } from '@react-navigation/native-stack';
4
5
 
5
6
  type RootStackParamList = {
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, Text, StyleSheet, TouchableOpacity, SafeAreaView, StatusBar } from 'react-native';
2
+ import { View, Text, StyleSheet, TouchableOpacity, StatusBar } from 'react-native';
3
+ import { SafeAreaView } from 'react-native-safe-area-context';
3
4
 
4
5
  export default function HomeScreen({ navigation }) {
5
6
  return (
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, Text, StyleSheet, TouchableOpacity, SafeAreaView, StatusBar } from 'react-native';
2
+ import { View, Text, StyleSheet, TouchableOpacity, StatusBar } from 'react-native';
3
+ import { SafeAreaView } from 'react-native-safe-area-context';
3
4
  import { NativeStackScreenProps } from '@react-navigation/native-stack';
4
5
 
5
6
  type RootStackParamList = {