React-Native NFT App
youtube link: Build and Deploy Your First Modern React Native App | NFT Marketplace Course - Extremely Easy! - YouTube
Getting started
npx create-expo-app nft-app
cd nft-app
create Stack Navigator
import { StatusBar } from 'expo-status-bar';
import { createStackNavigator } from '@react-navigation/stack';
import { NavigationContainer } from '@react-navigation/native';
import { StyleSheet, Text, View } from 'react-native';
const App=()=> {
const Stack = createStackNavigator();
return (
<View style={styles.container}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen/>
<Stack.Screen/>
</Stack.Navigator>
</NavigationContainer>
</View>
);
}
export default App;
creating theme add giving details
import { StatusBar } from 'expo-status-bar';
import { createStackNavigator } from '@react-navigation/stack';
import { NavigationContainer } from '@react-navigation/native';
import { StyleSheet, Text, View } from 'react-native';
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
background: "transparent",
},
};
const App=()=> {
const Stack = createStackNavigator();
return (
<View style={styles.container}>
<NavigationContainer theme={theme}>
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
initialRouteName="Home"
>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Details" component={Details} />
</Stack.Navigator>
</NavigationContainer>
</View>
);
}
export default App;