Giter Site home page Giter Site logo

secch97 / starter-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reactvision/starter-kit

0.0 0.0 0.0 841 KB

React Native project setup with Viro ๐Ÿš€

License: MIT License

JavaScript 8.76% Ruby 18.76% Objective-C 18.28% Kotlin 23.22% TypeScript 24.52% Objective-C++ 6.45%

starter-kit's Introduction

Viro Starter Kit

This is a new React Native project, set up with @viro-community/react-viro.

How to Install Viro in an existing project?

If you are integrating ViroReact into an existing project, have a look at our Installation instructions.

Getting Started

Note: Make sure you have completed the React Native - Environment Setup instructions. Stop before you get to the Creating a new application section; we have done that for you!

Step 1: Install Dependencies

npm install

iOS only:

cd ios
pod install
cd ..

Step 2: Start the Metro Server

First, you will need to start Metro, the JavaScript bundler that ships with React Native.

To start Metro, run the following command from the root of your React Native project:

npm start

Step 3: Start your Application

Warning: Due to limitations of the Apple Simulator and the Android Emulator, you must run your project on a physical device.

Let Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:

# iOS
npx react-native run-ios
# Android
npx react-native run-android

If everything is set up correctly, you should see your new app running on you device.

Install CocoaPods

cd ios
pod install
cd ..
# using npm
npm run ios

# OR using Yarn
yarn ios

If everything is set up correctly, you should see your new app running in your Android Emulator or iOS Simulator shortly provided you have set up your emulator/simulator correctly.

This is one way to run your app โ€” you can also run it directly from within Android Studio and Xcode respectively.

Step 4: Modifying your App

Now that you have successfully run the app, let's modify it.

  1. Open App.tsx in your text editor of choice and edit some lines.
  2. For Android: Press the R key twice or select "Reload" from the Developer Menu (Ctrl + M (on Window and Linux) or Cmd โŒ˜ + M (on macOS)) to see your changes!

Next Steps

Check out our documentation for guides, examples, and more!

Need help?

Reach us in Discord. or submit an issue!

starter-kit's People

Contributors

doranteseduardo avatar dependabot[bot] avatar robertjcolley avatar adelarsq avatar tomsotte avatar bilewinters avatar mariansam avatar geo-vi avatar equationalapplications avatar tufanlodos avatar secch97 avatar

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.