Giter Site home page Giter Site logo

jm-filmes_v4's Introduction

yarn install
npx expo install react-native-web@~0.18.10 [email protected] @expo/webpack-config@^18.0.1 react-native-gesture-handler
npm install @react-navigation/stack react-native-stars
yarn add @react-navigation/drawer
import React from 'react';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { Ionicons } from '@expo/vector-icons'; // Importe o conjunto de ícones desejado
import { TouchableOpacity } from 'react-native'; // Importe TouchableOpacity
import HomeScreen from './HomeScreen';
import ProfileScreen from './ProfileScreen';

const Drawer = createDrawerNavigator();

function AppDrawerNavigator({ navigation }) {
  const openDrawer = () => {
    navigation.openDrawer(); // Abre o Drawer Navigator
  };

  return (
    <Drawer.Navigator>
      <Drawer.Screen
        name="Home"
        component={HomeScreen}
        options={{
          headerLeft: () => (
            <TouchableOpacity onPress={openDrawer}>
              <Ionicons
                name="menu" // Nome do ícone desejado
                size={30} // Tamanho do ícone
                color="black" // Cor do ícone
                style={{ marginLeft: 10 }} // Estilo do ícone (opcional)
              />
            </TouchableOpacity>
          ),
        }}
      />
      <Drawer.Screen
        name="Profile"
        component={ProfileScreen}
        options={{
          headerLeft: () => (
            <TouchableOpacity onPress={openDrawer}>
              <Ionicons
                name="menu" // Nome do ícone desejado
                size={30} // Tamanho do ícone
                color="black" // Cor do ícone
                style={{ marginLeft: 10 }} // Estilo do ícone (opcional)
              />
            </TouchableOpacity>
          ),
        }}
      />
    </Drawer.Navigator>
  );
}

export default AppDrawerNavigator;

jm-filmes_v4's People

Contributors

gustavojoia avatar

Stargazers

Bruna Karen avatar

Watchers

 avatar

Forkers

luanagbrm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.