Skip to content

zziyifan/design-to-deployment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Design To Deployment 💻

Welcome to Design To Deployment! This guide will help you set up your environment and start developing React Native apps with Expo, even if you don’t have Node.js installed yet.

Prerequisites

Ensure you have the following:

  • A computer running macOS, Linux, or Windows
  • A stable internet connection

Step 1: Install Node.js

Node.js is required to run React Native and Expo.

macOS

  1. Download and install Homebrew (if not already installed):
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install Node.js using Homebrew:
    brew install node
  3. Verify installation:
    node -v
    npm -v

Linux

  1. Update package list:
    sudo apt update && sudo apt upgrade -y
  2. Install Node.js and npm:
    sudo apt install -y nodejs npm
  3. Verify installation:
    node -v
    npm -v

Windows

  1. Download and install Node.js.
  2. Restart your terminal and verify installation:
    node -v
    npm -v

Step 2: Install Expo CLI

Expo is a framework for building React Native apps quickly.

npm install -g expo-cli

Verify installation:

expo --version

Step 3: Create a New Expo Project

npx create-expo-app DesignToDeployment
cd DesignToDeployment

Step 4: Start the Development Server

npm start

This will open the Expo Developer Tools in your browser.

Step 5: Create an Expo Go Account

An Expo Go account allows you to log in, sync projects, and access additional features.

  1. Visit Expo’s signup page and create an account.
  2. Alternatively, create an account via the terminal:
    expo register
  3. Once registered, log in to your account:
    expo login

Step 6: Run Your App

  • On a physical device: Install the Expo Go app from the App Store or Google Play, then scan the QR code from the terminal.
  • On an emulator:
    • For iOS: Open with Xcode’s simulator (i in the terminal)
    • For Android: Start an Android emulator (a in the terminal)

Step 7: (Optional) Install Lucide Icons for React Native

If you want to use Lucide Icons in your React Native project, you can install them with the following command:

npm install lucide-react-native

Then, you can use the icons in your components like this:

import { View, Text } from 'react-native';
import { Activity, Star } from 'lucide-react-native';

const App = () => {
  return (
    <View>
      <Text>Hello World</Text>
      <Activity size={32} color="black" />
      <Star size={32} color="gold" />
    </View>
  );
};

export default App;

Step 8: Start Coding!

Open the project in a code editor like VS Code and modify App.js to start building your React Native app.

Troubleshooting

  • If you encounter permission errors on macOS/Linux, try running:
    sudo npm install -g expo-cli
  • On Windows, ensure you run the terminal as Administrator.

Happy coding! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%