@idealyst/cli 1.0.16 → 1.0.17
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/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './App.css';
|
|
2
|
+
import { BrowserRouter } from 'react-router-dom';
|
|
3
|
+
import { ExampleStackRouter, } from '@idealyst/navigation/examples';
|
|
4
|
+
import { NavigatorProvider } from '@idealyst/navigation';
|
|
5
|
+
|
|
6
|
+
function App() {
|
|
7
|
+
return (
|
|
8
|
+
<div className="App">
|
|
9
|
+
<BrowserRouter>
|
|
10
|
+
<NavigatorProvider route={ExampleStackRouter} />
|
|
11
|
+
</BrowserRouter>
|
|
12
|
+
</div>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default App;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
SafeAreaView,
|
|
4
|
+
} from 'react-native';
|
|
5
|
+
|
|
6
|
+
import { ExampleStackRouter } from '@idealyst/navigation/examples';
|
|
7
|
+
import { NavigatorProvider } from '@idealyst/navigation';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
function App() {
|
|
11
|
+
|
|
12
|
+
const backgroundStyle = {
|
|
13
|
+
flex: 1,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<SafeAreaView style={backgroundStyle}>
|
|
18
|
+
<NavigatorProvider route={ExampleStackRouter} />
|
|
19
|
+
</SafeAreaView>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default App;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Screen, View, Text, Button } from '@idealyst/components';
|
|
3
|
-
import { UnistylesRegistry } from 'react-native-unistyles';
|
|
4
|
-
import { lightTheme, darkTheme } from '@idealyst/theme';
|
|
5
|
-
|
|
6
|
-
// Register themes
|
|
7
|
-
UnistylesRegistry.addThemes({
|
|
8
|
-
light: lightTheme,
|
|
9
|
-
dark: darkTheme,
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
const App = () => {
|
|
13
|
-
return (
|
|
14
|
-
<Screen>
|
|
15
|
-
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
|
|
16
|
-
<Text variant="h1">Welcome to {{projectName}}</Text>
|
|
17
|
-
<Text variant="body">
|
|
18
|
-
This is a React Native app built with the Idealyst Framework.
|
|
19
|
-
</Text>
|
|
20
|
-
<Button
|
|
21
|
-
title="Get Started"
|
|
22
|
-
onPress={() => console.log('Button pressed!')}
|
|
23
|
-
style={{ marginTop: 20 }}
|
|
24
|
-
/>
|
|
25
|
-
</View>
|
|
26
|
-
</Screen>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default App;
|