GithubHelp home page GithubHelp logo

isabella232 / react-dc-workshop-2016-12-16 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moduscreateorg/react-dc-workshop-2016-12-16

0.0 0.0 0.0 102 KB

Example repository for the DC React JS meetup group

Home Page: https://moduscreate.com/

Java 3.63% JavaScript 88.43% Objective-C 7.94%

react-dc-workshop-2016-12-16's Introduction

No longer maintained

[DEPRECATED] This repository is no longer maintained

While this project is fully functional, the dependencies are no longer up to date. You are still welcome to explore, learn, and use the code provided here.

Modus is dedicated to supporting the community with innovative ideas, best-practice patterns, and inspiring open source solutions. Check out the latest Modus Labs projects.

Modus Labs


#About This project is designed to be used by the React DC hack night: http://www.meetup.com/React-DC/events/227361632/

The following steps are designed to get the project rolling.

##Preparing the project

Configure React Native on your Mac

https://facebook.github.io/react-native/docs/getting-started.html

Initiate the project

Clone this project:

git clone [email protected]:ModusCreateOrg/react-dc-workshop-2016-12-16.git

Install modules

In terminal:

cd react-dc-workshop-2016-12-16/
npm install

Patch react-native-youtube

react-native-youtube is not currently compatible with v0.16.0 of React native, so we need to patch it. Don't worry, it's not that hard!

Open node_modules/react-native-youtube/RCTYouTubeManager.m in your favorite editor.

Find

#import "RCTSparseArray.h"

replace with

#import "UIView+React.h"

Find

     [self.bridge.uiManager addUIBlock:
      ^(__unused RCTUIManager *uiManager, RCTSparseArray *viewRegistry){

replace with

    [self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {

Building the app

Using the React Native API docs (https://facebook.github.io/react-native/docs/), we're going to build a YouTube video player that looks like this:

video of app

Step 1: Building out List Item

Currently, the App renders Navigator component. This is used to manage transitions between "scenes". The initial scene (or Route) is a customized ListView component (YouTubeList). The List View is pre-seeded with data and renders a "ListItem" component.

  • Fill out missing pieces of the List Item so that it looks similar to the items below and is pressable. Hint: YouTubeList is already for the the transition to the player, but you must pass data to the handler!

Pic of list items

#Step 2: The Player is pre-seeded as the YouTubeViewer class.

Pic of viewer;

react-dc-workshop-2016-12-16's People

Contributors

jaygarcia avatar ecris87 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.