Skip to content

Instantly share code, notes, and snippets.

@xiongemi
Created October 9, 2021 04:40
Show Gist options
  • Save xiongemi/7c1448fffd3fe6bd57438bd51a1f32a6 to your computer and use it in GitHub Desktop.
Save xiongemi/7c1448fffd3fe6bd57438bd51a1f32a6 to your computer and use it in GitHub Desktop.
daily-horoscope-web
import { rootStore } from '@aztro-daily-horoscope/store';
import {
ZodiacSignListContainer,
HoroscopeCardContainer,
} from '@aztro-daily-horoscope/ui';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import * as React from 'react';
import { Provider } from 'react-redux';
const Stack = createStackNavigator();
const App = () => {
return (
<>
<style type="text/css">{`
@font-face {
font-family: 'MaterialIcons';
src: url(${require('react-native-vector-icons/Fonts/MaterialIcons.ttf')}) format('truetype');
}
@font-face {
font-family: 'MaterialCommunityIcons';
src: url(${require('react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf')}) format('truetype');
}
`}</style>
<Provider store={rootStore}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Zodiac Sign List"
component={ZodiacSignListContainer}
/>
<Stack.Screen
name="Horoscope Card"
component={HoroscopeCardContainer}
/>
</Stack.Navigator>
</NavigationContainer>
</Provider>
</>
);
};
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment