Giter VIP home page Giter VIP logo

react-native-classroom's Introduction

本项目基于 React Native 0.68.0 版本开发,并通过命令或配置的方式开启了新架构。

启动本项目之前,请先按照官方文档搭建环境

目前新架构还是预览版,仅供学习使用,请勿用于线上项目。

启动方法

$ git clone https://github.com/jiangleo/react-native-classroom.git
$ cd react-native-classroom
$ yarn install

运行 iOS

需要 MacOS 和 Xcode

# 安装 iOS 依赖 
$ cd ios && RCT_NEW_ARCH_ENABLED=1 pod install && cd ../

# 在模拟器安装 App
$ yarn ios

运行 Android

yarn install-android-hermes
yarn android

Open the ReactNativeClassroom app in your emulator. If you want to use a physical device, run adb devices, then adb -s reverse tcp:8081 tcp:8081. See Running on Device for additional instructions on using a physical device.

已知问题

  1. 动画或手势课程的 demo 中使用的 react-native-reanimated 找不到。

我在本地开发时遇到,在该项目中新架构和 react-native-reanimated 不能搭配一起使用,不然 iOS 就编译不通过,但老架构没问题, react-native-reanimated 官方提供的新架构 demo 跑起来也没有问题,目前没有定位到原因,所以先把 react-native-reanimated 库删了。 你可以参考 react-native-reanimated 官方文档 自行安装。

react-native-classroom's People

Contributors

jiangleo 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.