Commit f334c0e0 authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

.DS_Store

0 → 100644
+6 KiB

File added.

No diff preview for this file type.

Chapter 1/.DS_Store

0 → 100755
+6 KiB

File added.

No diff preview for this file type.

Chapter 1/README.txt

0 → 100755
+41 −0
Changes for Chapter 1/README.txt: 41 added lines, 0 removed lines.
Original line number Diff line number Diff line
Welcome to Cooking React Native Applications!

This collection of working files is intended to help you get 
started quickly and follow along with the various projects.

The project files are designed to serve as a reference. There
is a bias for working with iOS since the course was recorded
and developed on MacOS. The material that is not cross platform
(e.g. animations and JSON / GraphQL requests) should work just
as well on an Android device and through the Android simulator.

The working files do not include the Node package dependencies.
Make sure you have React Native installed on your computer.  
Facebook's Getting Started guide should provide simple 
instructions for your environment:

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

To run the project files, you will need to download all 
the package dependencies by going into the project folder
and running:

> npm install

iOS:
1. Open the project file in ios/ (look for the file ending in .xcodeproj)
2. Run the simulator. The project should build and launch react native development server. Once successfully built, the emulator should start running the app.

Android:
1. Open Android Studio and make sure that you have an emulator setup and running.
2. Start the android emulator
3. Build and run from the command line:
> react-native run-android

If you have any comments or questions, feel free to contact me.

Enjoy!

Jonathan Lebensold
e: jon@paradem.co
t: @jonlebensold
 No newline at end of file
+12 −0
Changes for Chapter 1/__tests__/index.android.js: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
import 'react-native';
import React from 'react';
import Index from '../index.android.js';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
  const tree = renderer.create(
    <Index />
  );
});
+12 −0
Changes for Chapter 1/__tests__/index.ios.js: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
import 'react-native';
import React from 'react';
import Index from '../index.ios.js';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
  const tree = renderer.create(
    <Index />
  );
});
Loading