├── .DS_Store
├── .gitignore
├── React Native tutorial-1-Introduction
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-10-ScrollView
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .DS_Store
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── inspectionProfiles
│ │ ├── Project_Default.xml
│ │ └── profiles_settings.xml
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── images
│ └── my_display.jpg
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-11-FlatList and SectionList
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .DS_Store
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── inspectionProfiles
│ │ ├── Project_Default.xml
│ │ └── profiles_settings.xml
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── images
│ └── my_display.jpg
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-12-Send GET request and fetch to ListView
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .DS_Store
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── inspectionProfiles
│ │ ├── Project_Default.xml
│ │ └── profiles_settings.xml
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── images
│ └── my_display.jpg
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-13-Navigating between screens with SlackNavigator
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── tutorialproject
│ ├── .DS_Store
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── tutorialproject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ ├── screens
│ ├── FirstScreen.js
│ └── SecondScreen.js
│ └── yarn.lock
├── React Native tutorial-14-Nesting navigators with TabNavigator
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── tutorialproject
│ ├── .DS_Store
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── tutorialproject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── images
│ ├── icon-home.png
│ └── icon-shopping.png
│ ├── package.json
│ ├── tabs
│ ├── FirstScreen.js
│ └── SecondScreen.js
│ └── yarn.lock
├── React Native tutorial-15-DrawerNavigator
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── tutorialproject
│ ├── .DS_Store
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── tutorialproject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ ├── screens
│ ├── FirstScreen.js
│ └── SecondScreen.js
│ └── yarn.lock
├── React Native tutorial-16-Platform specific code VN
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── tutorialproject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── tutorialproject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-16-Platform specific code
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── tutorialproject
│ ├── .babelrc
│ ├── .expo
│ ├── packager-info.json
│ └── settings.json
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── tutorialproject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-2-Create a hello world app on MacOS
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-2-Create a hello world app on Windows
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-3-Props
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-4-State
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-5-Style
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-6-Width and Height
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-7-Layout with Flexbox
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-8-Handling text input
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-9-Handling touches
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── TutorialProject
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── inspectionProfiles
│ │ ├── Project_Default.xml
│ │ └── profiles_settings.xml
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── TutorialProject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
├── React Native tutorial-xx16-Animations
├── .DS_Store
├── .idea
│ ├── jsLibraryMappings.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
└── code
│ ├── .DS_Store
│ └── tutorialproject
│ ├── .DS_Store
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .idea
│ ├── jsLibraryMappings.xml
│ ├── libraries
│ │ └── tutorialproject_node_modules.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
│ ├── .watchmanconfig
│ ├── Animations
│ ├── AnimatedView.js
│ └── FadeView.js
│ ├── App.js
│ ├── App.test.js
│ ├── README.md
│ ├── app.json
│ ├── package.json
│ └── yarn.lock
└── pushsource.sh
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the ART/Dalvik VM
6 | *.dex
7 |
8 | subscribe.png
9 | subscribe.psd
10 |
11 | # Java class files
12 | *.class
13 |
14 | # Generated files
15 | bin/
16 | gen/
17 | out/
18 |
19 | # Gradle files
20 | .gradle/
21 | build/
22 | # Video files
23 | video/
24 | # Local configuration file (sdk path, etc)
25 | local.properties
26 |
27 | # Proguard folder generated by Eclipse
28 | proguard/
29 |
30 | # Log Files
31 | *.log
32 |
33 | # Android Studio Navigation editor temp files
34 | .navigation/
35 |
36 | # Android Studio captures folder
37 | captures/
38 |
39 | # Intellij
40 | *.iml
41 | .idea/workspace.xml
42 |
43 | # Keystore files
44 | *.jks
45 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-1-Introduction /.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-1-Introduction /code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { StyleSheet, Text, View } from 'react-native';
3 |
4 | export default class App extends React.Component {
5 | render() {
6 | return (
7 |
8 | Open up App.js to start working on your app!. This is me - Nguyen Duc Hoang
9 | Changes you make will automatically reload.
10 | Shake your phone to open the developer menu.
11 |
12 | );
13 | }
14 | }
15 |
16 | const styles = StyleSheet.create({
17 | container: {
18 | flex: 1,
19 | backgroundColor: '#fff',
20 | alignItems: 'center',
21 | justifyContent: 'center',
22 | },
23 | });
24 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-1-Introduction /code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-10-ScrollView/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-10-ScrollView/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-10-ScrollView/code/TutorialProject/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/images/my_display.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-10-ScrollView/code/TutorialProject/images/my_display.jpg
--------------------------------------------------------------------------------
/React Native tutorial-10-ScrollView/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-11-FlatList and SectionList/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-11-FlatList and SectionList/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/images/my_display.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/images/my_display.jpg
--------------------------------------------------------------------------------
/React Native tutorial-11-FlatList and SectionList/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-12-Send GET request and fetch to ListView/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-12-Send GET request and fetch to ListView/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/images/my_display.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/images/my_display.jpg
--------------------------------------------------------------------------------
/React Native tutorial-12-Send GET request and fetch to ListView/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0",
25 | "util": "*"
26 | }
27 | }
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-13-Navigating between screens with SlackNavigator/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-13-Navigating between screens with SlackNavigator/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.idea/libraries/tutorialproject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {Text, View } from 'react-native';
3 |
4 | import { StackNavigator } from 'react-navigation';
5 | import FirstScreen from './screens/FirstScreen'
6 | import SecondScreen from './screens/SecondScreen'
7 |
8 | const Navigation = StackNavigator({
9 | First: {screen: FirstScreen},
10 | Second: {screen: SecondScreen}
11 | });
12 |
13 | export default Navigation; // Export your root navigator as the root component
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "18.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tutorialproject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.40",
7 | "jest-expo": "~18.0.0",
8 | "react-test-renderer": "16.0.0-alpha.12"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^18.0.3",
23 | "react": "16.0.0-alpha.12",
24 | "react-native": "^0.45.1",
25 | "react-navigation": "^1.0.0-beta.11",
26 | "util": "*"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/screens/FirstScreen.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by hoangnd on 6/27/17.
3 | */
4 |
5 | import React from 'react';
6 | import {Text, View, Button} from 'react-native';
7 | const util = require('util');
8 |
9 | export default class FirstScreen extends React.Component {
10 | static navigationOptions = {
11 | title: 'First screen',
12 | };
13 | render() {
14 | console.log("this.props.navigation = " + util.inspect(this.props.navigation, false, null));
15 | var {navigate} = this.props.navigation;
16 | return(
17 |
18 | This is screen 1
19 |
26 | );
27 | }
28 | }
--------------------------------------------------------------------------------
/React Native tutorial-13-Navigating between screens with SlackNavigator/code/tutorialproject/screens/SecondScreen.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by hoangnd on 6/27/17.
3 | */
4 | import React from 'react';
5 | import {Text, View, Button} from 'react-native';
6 | const util = require('util');
7 |
8 | export default class SecondScreen extends React.Component {
9 | static navigationOptions = {
10 | title: 'Second screen',
11 | };
12 |
13 | render() {
14 | console.log("this.props.navigation.state = " + util.inspect(this.props.navigation.state, false, null));
15 | var {params} = this.props.navigation.state;
16 | return (
17 |
18 | This is screen 2
19 | Params from screen1 : {params.name}, email = {params.email}
20 |
21 | );
22 | }
23 | }
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-14-Nesting navigators with TabNavigator/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-14-Nesting navigators with TabNavigator/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.45.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.idea/libraries/tutorialproject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {Text, View } from 'react-native';
3 |
4 | import { TabNavigator } from "react-navigation";
5 | import FirstScreen from './tabs/FirstScreen'
6 | import SecondScreen from './tabs/SecondScreen'
7 |
8 |
9 | var MainScreenNavigator = TabNavigator({
10 | Tab1: {screen: FirstScreen},
11 | Tab2: {screen: SecondScreen}
12 | }, {
13 | tabBarPosition: 'bottom',
14 | swipeEnabled: true,
15 | tabBarOptions: {
16 | activeTintColor: 'white',
17 | activeBackgroundColor: 'darkgreen',
18 | inactiveTintColor: 'black',
19 | inactiveBackgroundColor: 'green',
20 | labelStyle: {
21 | fontSize: 16,
22 | padding:0
23 | }
24 | }
25 | }
26 | );
27 |
28 | MainScreenNavigator.navigationOptions = {
29 | title: "Tab example"
30 | };
31 |
32 | export default MainScreenNavigator;
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "18.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/images/icon-home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/images/icon-home.png
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/images/icon-shopping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/images/icon-shopping.png
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tutorialproject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.40",
7 | "jest-expo": "~18.0.0",
8 | "react-test-renderer": "16.0.0-alpha.12"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^18.0.3",
23 | "react": "16.0.0-alpha.12",
24 | "react-native": "^0.45.1",
25 | "react-navigation": "^1.0.0-beta.11",
26 | "util": "*"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/tabs/FirstScreen.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by hoangnd on 7/4/17.
3 | */
4 | import React from 'react';
5 | import {Text, View, Button, Image} from 'react-native';
6 |
7 | export default class FirstScreen extends React.Component {
8 | static navigationOptions = {
9 | tabBarLabel: 'Home',
10 | tabBarIcon: ({tintColor}) => (
11 |
14 |
15 | )
16 | }
17 | render() {
18 | return
25 |
26 | This is tab 1
27 |
28 |
29 | }
30 | }
--------------------------------------------------------------------------------
/React Native tutorial-14-Nesting navigators with TabNavigator/code/tutorialproject/tabs/SecondScreen.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by hoangnd on 7/4/17.
3 | */
4 | import React from 'react';
5 | import {Text, View, Button, Image} from 'react-native';
6 |
7 | export default class SecondScreen extends React.Component {
8 | static navigationOptions = {
9 | tabBarLabel: 'Shopping',
10 | tabBarIcon: ({tintColor}) => (
11 |
14 |
15 | )
16 | }
17 |
18 | render() {
19 | return
26 |
27 | This is tab 2
28 |
29 |
30 | }
31 | }
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-15-DrawerNavigator/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-15-DrawerNavigator/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.45.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.idea/libraries/tutorialproject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/App.js:
--------------------------------------------------------------------------------
1 |
2 | import React from 'react';
3 | import {Button, Text, Platform, ScrollView, StyleSheet} from 'react-native';
4 | import {DrawerNavigator} from 'react-navigation';
5 |
6 | import FirstScreen from './screens/FirstScreen';
7 | import SecondScreen from './screens/SecondScreen';
8 |
9 | const DrawerExample = DrawerNavigator(
10 | {
11 | First: {
12 | path: '/',
13 | screen: FirstScreen,
14 | },
15 | Second: {
16 | path: '/sent',
17 | screen: SecondScreen,
18 | },
19 | },
20 | {
21 | initialRouteName: 'First',
22 | drawerPosition: 'left',
23 | // drawerWidth: 200,
24 | contentOptions: {
25 | activeTintColor: 'red',
26 | }
27 | }
28 | );
29 |
30 | export default DrawerExample;
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "18.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tutorialproject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.40",
7 | "jest-expo": "~18.0.0",
8 | "react-test-renderer": "16.0.0-alpha.12"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^18.0.3",
23 | "react": "16.0.0-alpha.12",
24 | "react-native": "^0.45.1",
25 | "react-navigation": "^1.0.0-beta.11",
26 | "util": "*"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/screens/FirstScreen.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by hoangnd on 7/5/17.
3 | */
4 | import React from 'react';
5 | import {Text, View, Button, Image} from 'react-native';
6 | import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
7 |
8 | export default class FirstScreen extends React.Component {
9 | static navigationOptions = {
10 | tabBarLabel: 'Screen 1',
11 | drawerIcon: ({tintColor}) => {
12 | console.log("tintColor = " + tintColor);
13 | return (
14 |
19 |
20 | );
21 | }
22 | }
23 | render() {
24 | return
31 |
32 | Screen 1
33 |
34 |
39 | }
40 | }
--------------------------------------------------------------------------------
/React Native tutorial-15-DrawerNavigator/code/tutorialproject/screens/SecondScreen.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by hoangnd on 7/5/17.
3 | */
4 | import React from 'react';
5 | import {Text, View, Button, Image} from 'react-native';
6 | import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
7 |
8 | export default class SecondScreen extends React.Component {
9 | static navigationOptions = {
10 | tabBarLabel: 'Screen 2',
11 | drawerIcon: ({tintColor}) => {
12 | return (
13 |
18 |
19 | );
20 | }
21 | }
22 |
23 | render() {
24 | return
31 |
32 | Screen 2
33 |
34 |
39 | }
40 | }
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-16-Platform specific code VN/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-16-Platform specific code VN/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.45.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/.idea/libraries/tutorialproject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/App.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {Platform, StyleSheet, ListView, Text, View, Alert} from 'react-native';
3 |
4 | class App extends Component {
5 | constructor(props) {
6 | super(props);
7 | }
8 |
9 | render() {
10 | const osName = (Platform.OS === "ios") ? "ios" : "android";
11 | Alert.alert(osName + ". Version is: " + Platform.Version);
12 | return (
13 |
14 |
15 |
16 | );
17 | }
18 | }
19 |
20 | const styles = StyleSheet.create({
21 | mainView: {
22 | flex: 1,
23 | marginTop: (Platform.OS === 'ios' ? 20 : 100),
24 | ...Platform.select({
25 | ios: {
26 | backgroundColor: 'green',
27 | },
28 | android: {
29 | backgroundColor: 'red',
30 | }
31 | }),
32 | }
33 | });
34 | export default App;
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "18.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code VN/code/tutorialproject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tutorialproject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.40",
7 | "jest-expo": "~18.0.0",
8 | "react-test-renderer": "16.0.0-alpha.12"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^18.0.3",
23 | "react": "16.0.0-alpha.12",
24 | "react-native": "^0.45.1"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-16-Platform specific code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-16-Platform specific code/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.expo/packager-info.json:
--------------------------------------------------------------------------------
1 | {
2 | "expoServerPort": null,
3 | "packagerPort": null,
4 | "packagerPid": null
5 | }
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.expo/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "hostType": "tunnel",
3 | "lanType": "ip",
4 | "dev": true,
5 | "strict": false,
6 | "minify": false,
7 | "urlType": "exp",
8 | "urlRandomness": null
9 | }
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.45.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.idea/libraries/tutorialproject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/App.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {Platform, StyleSheet, ListView, Text, View, Alert} from 'react-native';
3 |
4 | class App extends Component {
5 | constructor(props) {
6 | super(props);
7 | }
8 |
9 | render() {
10 | const osName = (Platform.OS === "ios") ? "ios" : "android";
11 | Alert.alert(osName + ". Version is: " + Platform.Version);
12 | return (
13 |
14 |
15 |
16 | );
17 | }
18 | }
19 |
20 | const styles = StyleSheet.create({
21 | mainView: {
22 | flex: 1,
23 | marginTop: (Platform.OS === 'ios' ? 20 : 100),
24 | ...Platform.select({
25 | ios: {
26 | backgroundColor: 'green',
27 | },
28 | android: {
29 | backgroundColor: 'red',
30 | }
31 | }),
32 | }
33 | });
34 | export default App;
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "18.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-16-Platform specific code/code/tutorialproject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tutorialproject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.40",
7 | "jest-expo": "~18.0.0",
8 | "react-test-renderer": "16.0.0-alpha.12"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^18.0.3",
23 | "react": "16.0.0-alpha.12",
24 | "react-native": "^0.45.1"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-2-Create a hello world app on MacOS/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-2-Create a hello world app on MacOS/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { AppRegistry, StyleSheet, Text, View } from 'react-native';
3 |
4 | export default class App extends React.Component {
5 | render() {
6 | return (
7 |
8 | Hello world!. This is me - Nguyen Duc Hoang
9 |
10 | );
11 | }
12 | }
13 | AppRegistry.registerComponent('This is Hello World', () => App)
14 | const styles = StyleSheet.create({
15 | container: {
16 | flex: 1,
17 | backgroundColor: '#fff',
18 | alignItems: 'center',
19 | justifyContent: 'center',
20 | },
21 | });
22 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on MacOS/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-2-Create a hello world app on Windows/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-2-Create a hello world app on Windows/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { AppRegistry, StyleSheet, Text, View } from 'react-native';
3 |
4 | export default class App extends React.Component {
5 | render() {
6 | return (
7 |
8 | Hello world!. This is me - Nguyen Duc Hoang
9 |
10 | );
11 | }
12 | }
13 | AppRegistry.registerComponent('This is Hello World', () => App)
14 | const styles = StyleSheet.create({
15 | container: {
16 | flex: 1,
17 | backgroundColor: '#fff',
18 | alignItems: 'center',
19 | justifyContent: 'center',
20 | },
21 | });
22 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-2-Create a hello world app on Windows/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-3-Props/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-3-Props/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {AppRegistry, StyleSheet, Text, View, Image} from 'react-native';
3 |
4 | class ContentComponent extends React.Component {
5 | render() {
6 | return (
7 | This is {this.props.content}
8 | );
9 | }
10 | }
11 |
12 | export default class DinosaurComponent extends React.Component {
13 | render() {
14 | let myImage = {uri: "https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/LA-Triceratops_mount-2.jpg/1920px-LA-Triceratops_mount-2.jpg"};
15 | let size = {width: 390, height: 90};
16 | return (
17 |
18 | props in React Native - Nguyen Duc Hoang
19 |
23 |
24 |
25 | );
26 | }
27 | }
28 |
29 |
30 | AppRegistry.registerComponent("This is a dinosour",() => DinosaurComponent);
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-3-Props/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-4-State/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-4-State/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-4-State/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-4-State/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | /*
2 | Nguyen Duc Hoang - sunlight4d@gmail.com
3 | React Native tutorial video
4 | */
5 | import React from 'react';
6 | import {AppRegistry, Text, View} from 'react-native';
7 |
8 | class Blink extends React.Component {
9 | constructor(props) {
10 | super(props);
11 | this.state = {isShownText: true};
12 |
13 | setInterval(
14 | () => {
15 | this.setState(previousState => {
16 | return {isShownText: !previousState.isShownText}
17 | });
18 | },
19 | 500
20 | );
21 | }
22 | render() {
23 | var textToDisplay = this.state.isShownText ? this.props.textContent : '';
24 | return(
25 | {textToDisplay}
26 | );
27 | }
28 | }
29 |
30 | export default class TextBlinkApp extends React.Component {
31 | render() {
32 | return (
33 |
39 |
40 | );
41 | }
42 | }
43 |
44 | // skip this line if using Create React Native App
45 | AppRegistry.registerComponent('BlinkApp', () => TextBlinkApp);
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-4-State/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-5-Style/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-5-Style/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | /*
2 | Nguyen Duc Hoang - sunlight4d@gmail.com
3 | React Native tutorial video
4 | */
5 | import React from 'react';
6 | import {AppRegistry, StyleSheet, Text, View, StatusBar} from 'react-native';
7 |
8 | export default class StyleComponent extends React.Component {
9 | render() {
10 | return (
11 |
12 |
13 | This is a styled text - RED
14 | This is a styled text - GREEN
15 |
16 | );
17 | }
18 | }
19 |
20 | const styles = StyleSheet.create({
21 | redColor: {
22 | color: 'red',
23 | fontWeight: 'bold',
24 | fontSize: 20
25 | },
26 | greenColor: {
27 | color: 'green',
28 | fontSize: 30
29 | }
30 | });
31 | // skip this line if using Create React Native App
32 | AppRegistry.registerComponent('Style a component ?', () => StyleComponent);
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-5-Style/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-6-Width and Height/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-6-Width and Height/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | /*
2 | Nguyen Duc Hoang - sunlight4d@gmail.com
3 | React Native tutorial video
4 | */
5 | import React from 'react';
6 | import {AppRegistry, StyleSheet, Text, View, StatusBar} from 'react-native';
7 |
8 | export default class SizeComponent extends React.Component {
9 | render() {
10 | return (
11 |
12 |
13 |
19 |
25 |
31 | Thang linh kia
32 |
33 | );
34 | }
35 | }
36 |
37 | AppRegistry.registerComponent('Style a component ?', () => SizeComponent);
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-6-Width and Height/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-7-Layout with Flexbox/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-7-Layout with Flexbox/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | /*
2 | Nguyen Duc Hoang - sunlight4d@gmail.com
3 | React Native tutorial video
4 | */
5 | import React from 'react';
6 | import {AppRegistry, StyleSheet, Text, View, StatusBar} from 'react-native';
7 |
8 | export default class AutoLayoutComponent extends React.Component {
9 | render() {
10 | return (
11 |
20 |
21 |
29 |
37 |
45 |
46 | );
47 | }
48 | }
49 |
50 | AppRegistry.registerComponent('Style a component ?', () => AutoLayoutComponent);
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-7-Layout with Flexbox/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-8-Handling text input/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-8-Handling text input/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | /*
2 | Nguyen Duc Hoang - sunlight4d@gmail.com
3 | React Native tutorial video
4 | */
5 | import React from 'react';
6 | import {AppRegistry, StyleSheet, Text, View, StatusBar, TextInput} from 'react-native';
7 |
8 | export default class App extends React.Component {
9 | constructor(props) {
10 | super(props);
11 | this.state = {
12 | text: ""
13 | }
14 | }
15 | /*
16 | handleChangeText = (typedText) => {
17 | this.setState({text: typedText});
18 | }
19 | */
20 | render() {
21 | return (
22 |
27 | {
36 | this.setState({text: typedText});
37 | }
38 | }
39 | value={this.state.text}
40 | />
41 |
48 | You type: {this.state.text}
49 |
50 |
51 |
52 | );
53 | }
54 | }
55 |
56 | // skip this line if using Create React Native App
57 | AppRegistry.registerComponent('Example of text input', () => App);
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-8-Handling text input/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-9-Handling touches/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-9-Handling touches/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.42.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.idea/libraries/TutorialProject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/App.js:
--------------------------------------------------------------------------------
1 | /*
2 | Nguyen Duc Hoang - sunlight4d@gmail.com
3 | React Native tutorial video
4 | */
5 | import React from 'react';
6 | import {Alert, AppRegistry, Button, StyleSheet, View, TouchableHighlight, Text, TouchableOpacity,
7 | TouchableNativeFeedback, TouchableWithoutFeedback} from 'react-native';
8 |
9 | export default class App extends React.Component {
10 | constructor(props) {
11 | super(props);
12 | }
13 | handlePressButton = () => {
14 | Alert.alert("You pressed the button !")
15 | }
16 | render() {
17 | return (
18 |
19 |
23 |
24 | This is TouchableWithoutFeedback
25 |
26 |
27 |
28 | );
29 | }
30 | }
31 | const styles = StyleSheet.create({
32 | container: {
33 | flex: 1,
34 | justifyContent: 'center'
35 | },
36 | insideButton: {
37 | margin: 20,
38 | justifyContent: 'center'
39 | }
40 | });
41 |
42 | // skip this line if using Create React Native App
43 | AppRegistry.registerComponent('Button and handling touches', () => App);
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "17.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-9-Handling touches/code/TutorialProject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "TutorialProject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.31",
7 | "jest-expo": "~1.0.1",
8 | "react-test-renderer": "16.0.0-alpha.6"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^17.0.0",
23 | "react": "16.0.0-alpha.6",
24 | "react-native": "^0.44.0"
25 | }
26 | }
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-xx16-Animations/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-xx16-Animations/code/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sunlight3d/ReactNativeTutorials/39331b3b480dd02574300551bc0cff6cc9940db1/React Native tutorial-xx16-Animations/code/tutorialproject/.DS_Store
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["babel-preset-expo"],
3 | "env": {
4 | "development": {
5 | "plugins": ["transform-react-jsx-source"]
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | ; Additional create-react-native-app ignores
18 |
19 | ; Ignore duplicate module providers
20 | .*/node_modules/fbemitter/lib/*
21 |
22 | ; Ignore misbehaving dev-dependencies
23 | .*/node_modules/xdl/build/*
24 | .*/node_modules/reqwest/tests/*
25 |
26 | ; Ignore missing expo-sdk dependencies (temporarily)
27 | ; https://github.com/expo/expo/issues/162
28 | .*/node_modules/expo/src/*
29 |
30 | ; Ignore react-native-fbads dependency of the expo sdk
31 | .*/node_modules/react-native-fbads/*
32 |
33 | [include]
34 |
35 | [libs]
36 | node_modules/react-native/Libraries/react-native/react-native-interface.js
37 | node_modules/react-native/flow
38 | flow/
39 |
40 | [options]
41 | module.system=haste
42 |
43 | emoji=true
44 |
45 | experimental.strict_type_args=true
46 |
47 | munge_underscores=true
48 |
49 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
50 |
51 | suppress_type=$FlowIssue
52 | suppress_type=$FlowFixMe
53 | suppress_type=$FixMe
54 |
55 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
56 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
57 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
58 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59 |
60 | unsafe.enable_getters_and_setters=true
61 |
62 | [version]
63 | ^0.45.0
64 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.idea/jsLibraryMappings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.idea/libraries/tutorialproject_node_modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/Animations/AnimatedView.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by hoangnd on 7/5/17.
3 | */
4 | import React from 'react';
5 | import {Animated, Easing, Text, View} from 'react-native';
6 |
7 | export default class AnimatedView extends React.Component {
8 |
9 | constructor(props) {
10 | super(props);
11 | this.state = {
12 | xPosition: new Animated.Value(0),
13 | }
14 | }
15 |
16 | componentDidMount() {
17 | Animated.timing(
18 | this.state.xPosition,
19 | {
20 | toValue: 200,
21 | easing: Easing.back,
22 | duration: 2000,
23 | }
24 | ).start();
25 | }
26 |
27 | render() {
28 | return (
29 |
35 | {this.props.children}
36 |
37 | );
38 | }
39 | }
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/Animations/FadeView.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by hoangnd on 7/5/17.
3 | */
4 | import React from 'react';
5 | import {Animated, Text, View} from 'react-native';
6 |
7 | export default class FadeView extends React.Component {
8 |
9 | constructor(props) {
10 | super(props);
11 | this.state = {
12 | fadeAnim: new Animated.Value(0),
13 | }
14 | }
15 | componentDidMount() {
16 | Animated.timing(
17 | this.state.fadeAnim,
18 | {
19 | toValue: 1,
20 | duration: 2000,
21 | }
22 | ).start();
23 | }
24 |
25 | render() {
26 | return (
27 |
33 | {this.props.children}
34 |
35 | );
36 | }
37 | }
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import FadeView from './Animations/FadeView'
3 | import AnimatedView from './Animations/AnimatedView'
4 | import {Animated, Text, View} from 'react-native';
5 |
6 | class App extends React.Component {
7 | render() {
8 | var fadeView =
9 | Fade text
10 |
11 | var animatedView =
12 | Animated View
13 |
14 | return (
15 |
16 | {/*fadeView*/}
17 | {animatedView}
18 |
19 | )
20 | }
21 | }
22 |
23 | export default App;
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import App from './App';
3 |
4 | import renderer from 'react-test-renderer';
5 |
6 | it('renders without crashing', () => {
7 | const rendered = renderer.create().toJSON();
8 | expect(rendered).toBeTruthy();
9 | });
10 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "sdkVersion": "18.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/React Native tutorial-xx16-Animations/code/tutorialproject/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tutorialproject",
3 | "version": "0.1.0",
4 | "private": true,
5 | "devDependencies": {
6 | "react-native-scripts": "0.0.40",
7 | "jest-expo": "~18.0.0",
8 | "react-test-renderer": "16.0.0-alpha.12"
9 | },
10 | "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
11 | "scripts": {
12 | "start": "react-native-scripts start",
13 | "eject": "react-native-scripts eject",
14 | "android": "react-native-scripts android",
15 | "ios": "react-native-scripts ios",
16 | "test": "node node_modules/jest/bin/jest.js --watch"
17 | },
18 | "jest": {
19 | "preset": "jest-expo"
20 | },
21 | "dependencies": {
22 | "expo": "^18.0.3",
23 | "react": "16.0.0-alpha.12",
24 | "react-native": "^0.45.1",
25 | "react-navigation": "^1.0.0-beta.11",
26 | "util": "*"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/pushsource.sh:
--------------------------------------------------------------------------------
1 | git add . && git commit -am "update" && git push origin master
2 |
--------------------------------------------------------------------------------