├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── README.md ├── __tests__ └── App-test.js ├── android ├── .project ├── .settings │ └── org.eclipse.buildship.core.prefs ├── app │ ├── .classpath │ ├── .project │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── noteapp │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios ├── NoteApp-tvOS │ └── Info.plist ├── NoteApp-tvOSTests │ └── Info.plist ├── NoteApp.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── NoteApp-tvOS.xcscheme │ │ └── NoteApp.xcscheme ├── NoteApp │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── NoteAppTests │ ├── Info.plist │ └── NoteAppTests.m ├── metro.config.js ├── package.json ├── src ├── Assets │ ├── DummyData │ │ ├── Categories.js │ │ ├── Color.js │ │ ├── Notes.js │ │ ├── insertdeletecategory.gif │ │ ├── insertdeletenote.gif │ │ ├── scrolling.gif │ │ ├── search.gif │ │ ├── sort.gif │ │ ├── sortbycategory.gif │ │ └── updatenote.gif │ └── Image │ │ ├── Shaloom-Razade.jpeg │ │ ├── icon │ │ ├── 001-advertising.png │ │ ├── 002-airplane.png │ │ ├── 003-backpack.png │ │ ├── 004-calendar.png │ │ ├── 005-rent-a-car.png │ │ ├── 006-catalog.png │ │ ├── 007-smile.png │ │ ├── 008-forum.png │ │ ├── 009-guide-book.png │ │ ├── 010-hotel.png │ │ ├── 011-hotel-1.png │ │ ├── 012-hotels.png │ │ ├── 013-location.png │ │ ├── 014-luggage.png │ │ ├── 015-manual.png │ │ ├── 016-vacation.png │ │ ├── 017-information.png │ │ ├── 018-passport.png │ │ ├── 019-photo.png │ │ ├── 020-review.png │ │ ├── 021-compass.png │ │ ├── 022-baggage.png │ │ ├── 023-binoculars.png │ │ ├── 024-column.png │ │ ├── 025-story.png │ │ ├── 026-taxi.png │ │ ├── 027-thumb-up.png │ │ ├── 028-suitcase.png │ │ ├── 029-tourist.png │ │ ├── 030-train.png │ │ ├── 031-loupe.png │ │ ├── 032-video.png │ │ ├── 033-village.png │ │ ├── 034-visa.png │ │ ├── 035-weather.png │ │ └── 036-world.png │ │ └── img.jpg ├── Components │ ├── ActionBarImage.js │ ├── Card.js │ ├── CategoryModal.js │ ├── DrawerNavigation.js │ ├── Fab.js │ ├── HeaderNavigation.js │ └── SortModal.js ├── Public │ └── redux │ │ ├── action │ │ └── notes.js │ │ ├── reducer │ │ ├── index.js │ │ └── notes.js │ │ └── store.js └── Screens │ ├── AddNote.js │ ├── EditNote.js │ ├── HomeScreen.js │ └── tempEdit.js └── test.css /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.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 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | 28 | [options] 29 | emoji=true 30 | 31 | esproposal.optional_chaining=enable 32 | esproposal.nullish_coalescing=enable 33 | 34 | module.system=haste 35 | module.system.haste.use_name_reducers=true 36 | # get basename 37 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 38 | # strip .js or .js.flow suffix 39 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 40 | # strip .ios suffix 41 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 42 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 43 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 44 | module.system.haste.paths.blacklist=.*/__tests__/.* 45 | module.system.haste.paths.blacklist=.*/__mocks__/.* 46 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 47 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 48 | 49 | munge_underscores=true 50 | 51 | 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' 52 | 53 | module.file_ext=.js 54 | module.file_ext=.jsx 55 | module.file_ext=.json 56 | module.file_ext=.native.js 57 | 58 | suppress_type=$FlowIssue 59 | suppress_type=$FlowFixMe 60 | suppress_type=$FlowFixMeProps 61 | suppress_type=$FlowFixMeState 62 | 63 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 64 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 65 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 66 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 67 | 68 | [version] 69 | ^0.92.0 70 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import { createStackNavigator, createAppContainer, createDrawerNavigator} from "react-navigation"; 3 | import { Provider } from 'react-redux' // import to wrap component in redux 4 | 5 | import DrawerNavigation from './src/Components/DrawerNavigation'; 6 | import HeaderNavigation from './src/Components/HeaderNavigation'; 7 | 8 | import HomeScreen from './src/Screens/HomeScreen'; 9 | import AddNoteScreen from './src/Screens/AddNote'; 10 | import EditNoteScreen from './src/Screens/EditNote'; 11 | 12 | 13 | 14 | // import store 15 | import store from './src/Public/redux/store'; 16 | 17 | const AppNavigator = createStackNavigator({ 18 | Home: { 19 | screen: HomeScreen, 20 | navigationOptions: ({navigation}) => ({ 21 | header:() 22 | }), 23 | }, 24 | AddNote: { 25 | screen: AddNoteScreen, 26 | navigationOptions: ({navigation}) => ({ 27 | header:() 28 | }), 29 | }, 30 | EditNote: { 31 | screen: EditNoteScreen, 32 | navigationOptions: ({navigation}) => ({ 33 | header:() 34 | }), 35 | }, 36 | }); 37 | 38 | const MyDrawer = createDrawerNavigator( 39 | { 40 | Home: { 41 | screen: AppNavigator, 42 | } 43 | }, 44 | { 45 | contentComponent: DrawerNavigation, 46 | drawerWidth:235 47 | } 48 | ); 49 | 50 | const AppContainer = createAppContainer(MyDrawer); 51 | 52 | export default class App extends Component { 53 | render(){ 54 | return( 55 | 56 | 57 | 58 | ) 59 | } 60 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native Note App - RESTful API 2 | 3 | ## Introduction 4 | [![React Native](https://img.shields.io/badge/React%20Native-0.60-blue.svg?style=rounded-square)](https://facebook.github.io/react-native/) 5 | [![Node.js](https://img.shields.io/badge/Node.js-v.10.16-green.svg?style=rounded-square)](https://nodejs.org/) 6 | 7 | Here is my new repository which builded with React Native Framework for making the User Interface in JavaScript syntax, see my previous repository about [RESTful API Note App with Express](https://github.com/aahmadhadi/RESTful-API-Note-App-with-Express) for the backend side and making API. 8 | 9 | ### What is React Native ? 10 | React Native is an open-source mobile application framework created by Facebook. It is used to develop applications for Android, iOS and UWP by enabling developers to use React along with native platform capabilities. [[1]](https://en.wikipedia.org/wiki/React_Native) 11 | 12 | ### Why using React Native ? 13 | 6 main reason why me using React Native for make a mobile app : 14 | 15 | 1. It's got iOS and Android covered 16 | 2. Reusable components allow hybrid apps to render natively 17 | 3. Apply React Native UI component to an existing app's code-without any rewriting at all 18 | 4. It’s one of the top mobile JavaScript frameworks among developers—and growing 19 | 5. React Native is all about the UI 20 | 6. Native app development is much more efficient 21 | 22 | ### How React Native works ? 23 | Short explanation about **How React Native Works**. 24 | 25 | React Native invokes Objective-C APIs to render to iOS components, or Java APIs to render to Android components. This sets React Native apart from other cross-platform app development options, which often end up rendering web-based views. 26 | 27 | ## Requirements 28 | 1. npm (node package manager) 29 | 2. react-native-cli (from npm) 30 | 31 | ## How to run the app ? 32 | 1. Clone or download first this repository with 33 | ``` 34 | git clone https://github.com/aahmadhadi/RESTful-API-Note-App-with-Express.git 35 | ``` 36 | 2. Open the project in your favorite text editor 37 | 3. Open your terminal or cmd and type 38 | ``` 39 | npm install 40 | ``` 41 | 4. Open *\src\Public\redux\actions\notes.js* and edit the **IP url** according to your ip backend 42 | 5. And the last just type in your terminal or cmd 43 | ``` 44 | react-native run-android 45 | ``` 46 | be sure if you connected with a device on debugging mode or use the emulator on debugging mode too. 47 | 48 | ## Demonstration 49 | 50 |

Home Screen

51 | 52 |

Sort Ascending / Descending

53 | 54 |

Search

55 | 56 |

Sort by Category

57 | 58 |

Insert Delete Note

59 | 60 |

Update Note

61 | 62 |

Insert Delete Category

63 | 64 | 65 | 66 | ## Authors 67 | * [Ahmad Hadi Jaelani](https://github.com/aahmadhadi) 68 | -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | NoteApp 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.noteapp", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.noteapp", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion rootProject.ext.compileSdkVersion 98 | 99 | compileOptions { 100 | sourceCompatibility JavaVersion.VERSION_1_8 101 | targetCompatibility JavaVersion.VERSION_1_8 102 | } 103 | 104 | defaultConfig { 105 | applicationId "com.noteapp" 106 | minSdkVersion rootProject.ext.minSdkVersion 107 | targetSdkVersion rootProject.ext.targetSdkVersion 108 | versionCode 1 109 | versionName "1.0" 110 | } 111 | splits { 112 | abi { 113 | reset() 114 | enable enableSeparateBuildPerCPUArchitecture 115 | universalApk false // If true, also generate a universal APK 116 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 117 | } 118 | } 119 | 120 | signingConfigs { 121 | release { 122 | if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) { 123 | storeFile file(MYAPP_RELEASE_STORE_FILE) 124 | storePassword MYAPP_RELEASE_STORE_PASSWORD 125 | keyAlias MYAPP_RELEASE_KEY_ALIAS 126 | keyPassword MYAPP_RELEASE_KEY_PASSWORD 127 | } 128 | } 129 | 130 | buildTypes { 131 | release { 132 | minifyEnabled enableProguardInReleaseBuilds 133 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 134 | signingConfig signingConfigs.release 135 | } 136 | } 137 | // applicationVariants are e.g. debug, release 138 | applicationVariants.all { variant -> 139 | variant.outputs.each { output -> 140 | // For each separate APK per architecture, set a unique version code as described here: 141 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 142 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4] 143 | def abi = output.getFilter(OutputFile.ABI) 144 | if (abi != null) { // null for the universal-debug, universal-release variants 145 | output.versionCodeOverride = 146 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 147 | } 148 | } 149 | } 150 | } 151 | } 152 | 153 | dependencies { 154 | implementation project(':react-native-svg') 155 | implementation project(':react-native-gesture-handler') 156 | implementation fileTree(dir: "libs", include: ["*.jar"]) 157 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 158 | implementation "com.facebook.react:react-native:+" // From node_modules 159 | } 160 | 161 | // Run this once to be able to run the application with BUCK 162 | // puts all compile dependencies into folder libs for BUCK to use 163 | task copyDownloadableDepsToLibs(type: Copy) { 164 | from configurations.compile 165 | into 'libs' 166 | } 167 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/noteapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.noteapp; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactActivityDelegate; 5 | import com.facebook.react.ReactRootView; 6 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; 7 | 8 | public class MainActivity extends ReactActivity { 9 | 10 | /** 11 | * Returns the name of the main component registered from JavaScript. 12 | * This is used to schedule rendering of the component. 13 | */ 14 | @Override 15 | protected String getMainComponentName() { 16 | return "NoteApp"; 17 | } 18 | @Override 19 | protected ReactActivityDelegate createReactActivityDelegate() { 20 | return new ReactActivityDelegate(this, getMainComponentName()) { 21 | @Override 22 | protected ReactRootView createRootView() { 23 | return new RNGestureHandlerEnabledRootView(MainActivity.this); 24 | } 25 | }; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/noteapp/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.noteapp; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.horcrux.svg.SvgPackage; 7 | import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | import com.facebook.soloader.SoLoader; 12 | 13 | import java.util.Arrays; 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | return Arrays.asList( 27 | new MainReactPackage(), 28 | new SvgPackage(), 29 | new RNGestureHandlerPackage() 30 | ); 31 | } 32 | 33 | @Override 34 | protected String getJSMainModuleName() { 35 | return "index"; 36 | } 37 | }; 38 | 39 | @Override 40 | public ReactNativeHost getReactNativeHost() { 41 | return mReactNativeHost; 42 | } 43 | 44 | @Override 45 | public void onCreate() { 46 | super.onCreate(); 47 | SoLoader.init(this, /* native exopackage */ false); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | NoteApp 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:3.4.0") 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | MYAPP_RELEASE_STORE_FILE=mykeystore.keystore 21 | MYAPP_RELEASE_KEY_ALIAS=mykeyalias 22 | MYAPP_RELEASE_STORE_PASSWORD=123456 23 | MYAPP_RELEASE_KEY_PASSWORD=123456 -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin, switch paths to Windows format before running java 129 | if $cygwin ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=$((i+1)) 158 | done 159 | case $i in 160 | (0) set -- ;; 161 | (1) set -- "$args0" ;; 162 | (2) set -- "$args0" "$args1" ;; 163 | (3) set -- "$args0" "$args1" "$args2" ;; 164 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=$(save "$@") 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 185 | cd "$(dirname "$0")" 186 | fi 187 | 188 | exec "$JAVACMD" "$@" 189 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem http://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 34 | 35 | @rem Find java.exe 36 | if defined JAVA_HOME goto findJavaFromJavaHome 37 | 38 | set JAVA_EXE=java.exe 39 | %JAVA_EXE% -version >NUL 2>&1 40 | if "%ERRORLEVEL%" == "0" goto init 41 | 42 | echo. 43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 44 | echo. 45 | echo Please set the JAVA_HOME variable in your environment to match the 46 | echo location of your Java installation. 47 | 48 | goto fail 49 | 50 | :findJavaFromJavaHome 51 | set JAVA_HOME=%JAVA_HOME:"=% 52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 53 | 54 | if exist "%JAVA_EXE%" goto init 55 | 56 | echo. 57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 58 | echo. 59 | echo Please set the JAVA_HOME variable in your environment to match the 60 | echo location of your Java installation. 61 | 62 | goto fail 63 | 64 | :init 65 | @rem Get command-line arguments, handling Windows variants 66 | 67 | if not "%OS%" == "Windows_NT" goto win9xME_args 68 | 69 | :win9xME_args 70 | @rem Slurp the command line arguments. 71 | set CMD_LINE_ARGS= 72 | set _SKIP=2 73 | 74 | :win9xME_args_slurp 75 | if "x%~1" == "x" goto execute 76 | 77 | set CMD_LINE_ARGS=%* 78 | 79 | :execute 80 | @rem Setup the command line 81 | 82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 83 | 84 | @rem Execute Gradle 85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 86 | 87 | :end 88 | @rem End local scope for the variables with windows NT shell 89 | if "%ERRORLEVEL%"=="0" goto mainEnd 90 | 91 | :fail 92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 93 | rem the _cmd.exe /c_ return code! 94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 95 | exit /b 1 96 | 97 | :mainEnd 98 | if "%OS%"=="Windows_NT" endlocal 99 | 100 | :omega 101 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'NoteApp' 2 | include ':react-native-svg' 3 | project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android') 4 | include ':react-native-gesture-handler' 5 | project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') 6 | 7 | include ':app' 8 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NoteApp", 3 | "displayName": "NoteApp" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/NoteApp-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/NoteApp-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/NoteApp.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 14 | 00E356F31AD99517003FC87E /* NoteAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* NoteAppTests.m */; }; 15 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 35 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 36 | 2DCD954D1E0B4F2C00145EB5 /* NoteAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* NoteAppTests.m */; }; 37 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 39 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 40 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; }; 41 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; }; 42 | 077A526E08A54FF1BA27CE1D /* libRNGestureHandler.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5837BAE1D86344C5AC437A61 /* libRNGestureHandler.a */; }; 43 | D0BCD7B968194085AF0F744F /* libRNGestureHandler-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C2DAC70FC827453982A09CD6 /* libRNGestureHandler-tvOS.a */; }; 44 | 2BDB0AEE9EBA48BA8F681E73 /* libRNSVG.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AFB9EE27331044D1A42B7A48 /* libRNSVG.a */; }; 45 | 07DD7DA856374CA3A6056B97 /* libRNSVG-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F47551022D194438999A316B /* libRNSVG-tvOS.a */; }; 46 | /* End PBXBuildFile section */ 47 | 48 | /* Begin PBXContainerItemProxy section */ 49 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 50 | isa = PBXContainerItemProxy; 51 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 52 | proxyType = 2; 53 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 54 | remoteInfo = RCTActionSheet; 55 | }; 56 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 57 | isa = PBXContainerItemProxy; 58 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 59 | proxyType = 2; 60 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 61 | remoteInfo = RCTGeolocation; 62 | }; 63 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 64 | isa = PBXContainerItemProxy; 65 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 66 | proxyType = 2; 67 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 68 | remoteInfo = RCTImage; 69 | }; 70 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 71 | isa = PBXContainerItemProxy; 72 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 73 | proxyType = 2; 74 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 75 | remoteInfo = RCTNetwork; 76 | }; 77 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 78 | isa = PBXContainerItemProxy; 79 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 80 | proxyType = 2; 81 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 82 | remoteInfo = RCTVibration; 83 | }; 84 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 85 | isa = PBXContainerItemProxy; 86 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 87 | proxyType = 1; 88 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 89 | remoteInfo = NoteApp; 90 | }; 91 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 92 | isa = PBXContainerItemProxy; 93 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 94 | proxyType = 2; 95 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 96 | remoteInfo = RCTSettings; 97 | }; 98 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 99 | isa = PBXContainerItemProxy; 100 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 101 | proxyType = 2; 102 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 103 | remoteInfo = RCTWebSocket; 104 | }; 105 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 106 | isa = PBXContainerItemProxy; 107 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 108 | proxyType = 2; 109 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 110 | remoteInfo = React; 111 | }; 112 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 113 | isa = PBXContainerItemProxy; 114 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 115 | proxyType = 1; 116 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 117 | remoteInfo = "NoteApp-tvOS"; 118 | }; 119 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 120 | isa = PBXContainerItemProxy; 121 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 122 | proxyType = 2; 123 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 124 | remoteInfo = "RCTBlob-tvOS"; 125 | }; 126 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 127 | isa = PBXContainerItemProxy; 128 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 129 | proxyType = 2; 130 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 131 | remoteInfo = fishhook; 132 | }; 133 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 134 | isa = PBXContainerItemProxy; 135 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 136 | proxyType = 2; 137 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 138 | remoteInfo = "fishhook-tvOS"; 139 | }; 140 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = { 141 | isa = PBXContainerItemProxy; 142 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 143 | proxyType = 2; 144 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 145 | remoteInfo = jsinspector; 146 | }; 147 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = { 148 | isa = PBXContainerItemProxy; 149 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 150 | proxyType = 2; 151 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 152 | remoteInfo = "jsinspector-tvOS"; 153 | }; 154 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = { 155 | isa = PBXContainerItemProxy; 156 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 157 | proxyType = 2; 158 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 159 | remoteInfo = "third-party"; 160 | }; 161 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = { 162 | isa = PBXContainerItemProxy; 163 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 164 | proxyType = 2; 165 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 166 | remoteInfo = "third-party-tvOS"; 167 | }; 168 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = { 169 | isa = PBXContainerItemProxy; 170 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 171 | proxyType = 2; 172 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 173 | remoteInfo = "double-conversion"; 174 | }; 175 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = { 176 | isa = PBXContainerItemProxy; 177 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 178 | proxyType = 2; 179 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 180 | remoteInfo = "double-conversion-tvOS"; 181 | }; 182 | 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */ = { 183 | isa = PBXContainerItemProxy; 184 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 185 | proxyType = 2; 186 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 187 | remoteInfo = privatedata; 188 | }; 189 | 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */ = { 190 | isa = PBXContainerItemProxy; 191 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 192 | proxyType = 2; 193 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 194 | remoteInfo = "privatedata-tvOS"; 195 | }; 196 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 197 | isa = PBXContainerItemProxy; 198 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 199 | proxyType = 2; 200 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 201 | remoteInfo = "RCTImage-tvOS"; 202 | }; 203 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 204 | isa = PBXContainerItemProxy; 205 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 206 | proxyType = 2; 207 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 208 | remoteInfo = "RCTLinking-tvOS"; 209 | }; 210 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 211 | isa = PBXContainerItemProxy; 212 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 213 | proxyType = 2; 214 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 215 | remoteInfo = "RCTNetwork-tvOS"; 216 | }; 217 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 218 | isa = PBXContainerItemProxy; 219 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 220 | proxyType = 2; 221 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 222 | remoteInfo = "RCTSettings-tvOS"; 223 | }; 224 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 225 | isa = PBXContainerItemProxy; 226 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 227 | proxyType = 2; 228 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 229 | remoteInfo = "RCTText-tvOS"; 230 | }; 231 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 232 | isa = PBXContainerItemProxy; 233 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 234 | proxyType = 2; 235 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 236 | remoteInfo = "RCTWebSocket-tvOS"; 237 | }; 238 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 239 | isa = PBXContainerItemProxy; 240 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 241 | proxyType = 2; 242 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 243 | remoteInfo = "React-tvOS"; 244 | }; 245 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 246 | isa = PBXContainerItemProxy; 247 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 248 | proxyType = 2; 249 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 250 | remoteInfo = yoga; 251 | }; 252 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 253 | isa = PBXContainerItemProxy; 254 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 255 | proxyType = 2; 256 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 257 | remoteInfo = "yoga-tvOS"; 258 | }; 259 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 260 | isa = PBXContainerItemProxy; 261 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 262 | proxyType = 2; 263 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 264 | remoteInfo = cxxreact; 265 | }; 266 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 267 | isa = PBXContainerItemProxy; 268 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 269 | proxyType = 2; 270 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 271 | remoteInfo = "cxxreact-tvOS"; 272 | }; 273 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 274 | isa = PBXContainerItemProxy; 275 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 276 | proxyType = 2; 277 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 278 | remoteInfo = jschelpers; 279 | }; 280 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 281 | isa = PBXContainerItemProxy; 282 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 283 | proxyType = 2; 284 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 285 | remoteInfo = "jschelpers-tvOS"; 286 | }; 287 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 288 | isa = PBXContainerItemProxy; 289 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 290 | proxyType = 2; 291 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 292 | remoteInfo = RCTAnimation; 293 | }; 294 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 295 | isa = PBXContainerItemProxy; 296 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 297 | proxyType = 2; 298 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 299 | remoteInfo = "RCTAnimation-tvOS"; 300 | }; 301 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 302 | isa = PBXContainerItemProxy; 303 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 304 | proxyType = 2; 305 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 306 | remoteInfo = RCTLinking; 307 | }; 308 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 309 | isa = PBXContainerItemProxy; 310 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 311 | proxyType = 2; 312 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 313 | remoteInfo = RCTText; 314 | }; 315 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 316 | isa = PBXContainerItemProxy; 317 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 318 | proxyType = 2; 319 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 320 | remoteInfo = RCTBlob; 321 | }; 322 | /* End PBXContainerItemProxy section */ 323 | 324 | /* Begin PBXFileReference section */ 325 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 326 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 327 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 328 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 329 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 330 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 331 | 00E356EE1AD99517003FC87E /* NoteAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NoteAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 332 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 333 | 00E356F21AD99517003FC87E /* NoteAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NoteAppTests.m; sourceTree = ""; }; 334 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 335 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 336 | 13B07F961A680F5B00A75B9A /* NoteApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NoteApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 337 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = NoteApp/AppDelegate.h; sourceTree = ""; }; 338 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = NoteApp/AppDelegate.m; sourceTree = ""; }; 339 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 340 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = NoteApp/Images.xcassets; sourceTree = ""; }; 341 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = NoteApp/Info.plist; sourceTree = ""; }; 342 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = NoteApp/main.m; sourceTree = ""; }; 343 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 344 | 2D02E47B1E0B4A5D006451C7 /* NoteApp-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "NoteApp-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 345 | 2D02E4901E0B4A5D006451C7 /* NoteApp-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "NoteApp-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 346 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 347 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 348 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 349 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 350 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 351 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 352 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 353 | 7EBF1CA4FBB84A9EB6FCBF87 /* RNGestureHandler.xcodeproj */ = {isa = PBXFileReference; name = "RNGestureHandler.xcodeproj"; path = "../node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 354 | 5837BAE1D86344C5AC437A61 /* libRNGestureHandler.a */ = {isa = PBXFileReference; name = "libRNGestureHandler.a"; path = "libRNGestureHandler.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 355 | C2DAC70FC827453982A09CD6 /* libRNGestureHandler-tvOS.a */ = {isa = PBXFileReference; name = "libRNGestureHandler-tvOS.a"; path = "libRNGestureHandler-tvOS.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 356 | C2775C74E2794A7F949D27F4 /* RNSVG.xcodeproj */ = {isa = PBXFileReference; name = "RNSVG.xcodeproj"; path = "../node_modules/react-native-svg/ios/RNSVG.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 357 | AFB9EE27331044D1A42B7A48 /* libRNSVG.a */ = {isa = PBXFileReference; name = "libRNSVG.a"; path = "libRNSVG.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 358 | F47551022D194438999A316B /* libRNSVG-tvOS.a */ = {isa = PBXFileReference; name = "libRNSVG-tvOS.a"; path = "libRNSVG-tvOS.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 359 | /* End PBXFileReference section */ 360 | 361 | /* Begin PBXFrameworksBuildPhase section */ 362 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 363 | isa = PBXFrameworksBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 371 | isa = PBXFrameworksBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */, 375 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 376 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 377 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 378 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 379 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 380 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 381 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 382 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 383 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 384 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 385 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 386 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 387 | 077A526E08A54FF1BA27CE1D /* libRNGestureHandler.a in Frameworks */, 388 | 2BDB0AEE9EBA48BA8F681E73 /* libRNSVG.a in Frameworks */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 393 | isa = PBXFrameworksBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */, 397 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 398 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 399 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 400 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 401 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 402 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 403 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 404 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 405 | D0BCD7B968194085AF0F744F /* libRNGestureHandler-tvOS.a in Frameworks */, 406 | 07DD7DA856374CA3A6056B97 /* libRNSVG-tvOS.a in Frameworks */, 407 | ); 408 | runOnlyForDeploymentPostprocessing = 0; 409 | }; 410 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 411 | isa = PBXFrameworksBuildPhase; 412 | buildActionMask = 2147483647; 413 | files = ( 414 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */, 415 | ); 416 | runOnlyForDeploymentPostprocessing = 0; 417 | }; 418 | /* End PBXFrameworksBuildPhase section */ 419 | 420 | /* Begin PBXGroup section */ 421 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 422 | isa = PBXGroup; 423 | children = ( 424 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 425 | ); 426 | name = Products; 427 | sourceTree = ""; 428 | }; 429 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 430 | isa = PBXGroup; 431 | children = ( 432 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 433 | ); 434 | name = Products; 435 | sourceTree = ""; 436 | }; 437 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 438 | isa = PBXGroup; 439 | children = ( 440 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 441 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 442 | ); 443 | name = Products; 444 | sourceTree = ""; 445 | }; 446 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 447 | isa = PBXGroup; 448 | children = ( 449 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 450 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 451 | ); 452 | name = Products; 453 | sourceTree = ""; 454 | }; 455 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 456 | isa = PBXGroup; 457 | children = ( 458 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 459 | ); 460 | name = Products; 461 | sourceTree = ""; 462 | }; 463 | 00E356EF1AD99517003FC87E /* NoteAppTests */ = { 464 | isa = PBXGroup; 465 | children = ( 466 | 00E356F21AD99517003FC87E /* NoteAppTests.m */, 467 | 00E356F01AD99517003FC87E /* Supporting Files */, 468 | ); 469 | path = NoteAppTests; 470 | sourceTree = ""; 471 | }; 472 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 473 | isa = PBXGroup; 474 | children = ( 475 | 00E356F11AD99517003FC87E /* Info.plist */, 476 | ); 477 | name = "Supporting Files"; 478 | sourceTree = ""; 479 | }; 480 | 139105B71AF99BAD00B5F7CC /* Products */ = { 481 | isa = PBXGroup; 482 | children = ( 483 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 484 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 485 | ); 486 | name = Products; 487 | sourceTree = ""; 488 | }; 489 | 139FDEE71B06529A00C62182 /* Products */ = { 490 | isa = PBXGroup; 491 | children = ( 492 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 493 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 494 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 495 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 496 | ); 497 | name = Products; 498 | sourceTree = ""; 499 | }; 500 | 13B07FAE1A68108700A75B9A /* NoteApp */ = { 501 | isa = PBXGroup; 502 | children = ( 503 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 504 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 505 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 506 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 507 | 13B07FB61A68108700A75B9A /* Info.plist */, 508 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 509 | 13B07FB71A68108700A75B9A /* main.m */, 510 | ); 511 | name = NoteApp; 512 | sourceTree = ""; 513 | }; 514 | 146834001AC3E56700842450 /* Products */ = { 515 | isa = PBXGroup; 516 | children = ( 517 | 146834041AC3E56700842450 /* libReact.a */, 518 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 519 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 520 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 521 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 522 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 523 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 524 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 525 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */, 526 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */, 527 | 2DF0FFE32056DD460020B375 /* libthird-party.a */, 528 | 2DF0FFE52056DD460020B375 /* libthird-party.a */, 529 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */, 530 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */, 531 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */, 532 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */, 533 | ); 534 | name = Products; 535 | sourceTree = ""; 536 | }; 537 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 538 | isa = PBXGroup; 539 | children = ( 540 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 541 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 542 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 543 | ); 544 | name = Frameworks; 545 | sourceTree = ""; 546 | }; 547 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 548 | isa = PBXGroup; 549 | children = ( 550 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 551 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 552 | ); 553 | name = Products; 554 | sourceTree = ""; 555 | }; 556 | 78C398B11ACF4ADC00677621 /* Products */ = { 557 | isa = PBXGroup; 558 | children = ( 559 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 560 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 561 | ); 562 | name = Products; 563 | sourceTree = ""; 564 | }; 565 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 566 | isa = PBXGroup; 567 | children = ( 568 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 569 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 570 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 571 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 572 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 573 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 574 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 575 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 576 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 577 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 578 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 579 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 580 | 7EBF1CA4FBB84A9EB6FCBF87 /* RNGestureHandler.xcodeproj */, 581 | C2775C74E2794A7F949D27F4 /* RNSVG.xcodeproj */, 582 | ); 583 | name = Libraries; 584 | sourceTree = ""; 585 | }; 586 | 832341B11AAA6A8300B99B32 /* Products */ = { 587 | isa = PBXGroup; 588 | children = ( 589 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 590 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 591 | ); 592 | name = Products; 593 | sourceTree = ""; 594 | }; 595 | 83CBB9F61A601CBA00E9B192 = { 596 | isa = PBXGroup; 597 | children = ( 598 | 13B07FAE1A68108700A75B9A /* NoteApp */, 599 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 600 | 00E356EF1AD99517003FC87E /* NoteAppTests */, 601 | 83CBBA001A601CBA00E9B192 /* Products */, 602 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 603 | ); 604 | indentWidth = 2; 605 | sourceTree = ""; 606 | tabWidth = 2; 607 | usesTabs = 0; 608 | }; 609 | 83CBBA001A601CBA00E9B192 /* Products */ = { 610 | isa = PBXGroup; 611 | children = ( 612 | 13B07F961A680F5B00A75B9A /* NoteApp.app */, 613 | 00E356EE1AD99517003FC87E /* NoteAppTests.xctest */, 614 | 2D02E47B1E0B4A5D006451C7 /* NoteApp-tvOS.app */, 615 | 2D02E4901E0B4A5D006451C7 /* NoteApp-tvOSTests.xctest */, 616 | ); 617 | name = Products; 618 | sourceTree = ""; 619 | }; 620 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 621 | isa = PBXGroup; 622 | children = ( 623 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 624 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 625 | ); 626 | name = Products; 627 | sourceTree = ""; 628 | }; 629 | /* End PBXGroup section */ 630 | 631 | /* Begin PBXNativeTarget section */ 632 | 00E356ED1AD99517003FC87E /* NoteAppTests */ = { 633 | isa = PBXNativeTarget; 634 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "NoteAppTests" */; 635 | buildPhases = ( 636 | 00E356EA1AD99517003FC87E /* Sources */, 637 | 00E356EB1AD99517003FC87E /* Frameworks */, 638 | 00E356EC1AD99517003FC87E /* Resources */, 639 | ); 640 | buildRules = ( 641 | ); 642 | dependencies = ( 643 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 644 | ); 645 | name = NoteAppTests; 646 | productName = NoteAppTests; 647 | productReference = 00E356EE1AD99517003FC87E /* NoteAppTests.xctest */; 648 | productType = "com.apple.product-type.bundle.unit-test"; 649 | }; 650 | 13B07F861A680F5B00A75B9A /* NoteApp */ = { 651 | isa = PBXNativeTarget; 652 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "NoteApp" */; 653 | buildPhases = ( 654 | 13B07F871A680F5B00A75B9A /* Sources */, 655 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 656 | 13B07F8E1A680F5B00A75B9A /* Resources */, 657 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 658 | ); 659 | buildRules = ( 660 | ); 661 | dependencies = ( 662 | ); 663 | name = NoteApp; 664 | productName = "Hello World"; 665 | productReference = 13B07F961A680F5B00A75B9A /* NoteApp.app */; 666 | productType = "com.apple.product-type.application"; 667 | }; 668 | 2D02E47A1E0B4A5D006451C7 /* NoteApp-tvOS */ = { 669 | isa = PBXNativeTarget; 670 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "NoteApp-tvOS" */; 671 | buildPhases = ( 672 | 2D02E4771E0B4A5D006451C7 /* Sources */, 673 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 674 | 2D02E4791E0B4A5D006451C7 /* Resources */, 675 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 676 | ); 677 | buildRules = ( 678 | ); 679 | dependencies = ( 680 | ); 681 | name = "NoteApp-tvOS"; 682 | productName = "NoteApp-tvOS"; 683 | productReference = 2D02E47B1E0B4A5D006451C7 /* NoteApp-tvOS.app */; 684 | productType = "com.apple.product-type.application"; 685 | }; 686 | 2D02E48F1E0B4A5D006451C7 /* NoteApp-tvOSTests */ = { 687 | isa = PBXNativeTarget; 688 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "NoteApp-tvOSTests" */; 689 | buildPhases = ( 690 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 691 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 692 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 693 | ); 694 | buildRules = ( 695 | ); 696 | dependencies = ( 697 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 698 | ); 699 | name = "NoteApp-tvOSTests"; 700 | productName = "NoteApp-tvOSTests"; 701 | productReference = 2D02E4901E0B4A5D006451C7 /* NoteApp-tvOSTests.xctest */; 702 | productType = "com.apple.product-type.bundle.unit-test"; 703 | }; 704 | /* End PBXNativeTarget section */ 705 | 706 | /* Begin PBXProject section */ 707 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 708 | isa = PBXProject; 709 | attributes = { 710 | LastUpgradeCheck = 940; 711 | ORGANIZATIONNAME = Facebook; 712 | TargetAttributes = { 713 | 00E356ED1AD99517003FC87E = { 714 | CreatedOnToolsVersion = 6.2; 715 | TestTargetID = 13B07F861A680F5B00A75B9A; 716 | }; 717 | 2D02E47A1E0B4A5D006451C7 = { 718 | CreatedOnToolsVersion = 8.2.1; 719 | ProvisioningStyle = Automatic; 720 | }; 721 | 2D02E48F1E0B4A5D006451C7 = { 722 | CreatedOnToolsVersion = 8.2.1; 723 | ProvisioningStyle = Automatic; 724 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 725 | }; 726 | }; 727 | }; 728 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "NoteApp" */; 729 | compatibilityVersion = "Xcode 3.2"; 730 | developmentRegion = English; 731 | hasScannedForEncodings = 0; 732 | knownRegions = ( 733 | en, 734 | Base, 735 | ); 736 | mainGroup = 83CBB9F61A601CBA00E9B192; 737 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 738 | projectDirPath = ""; 739 | projectReferences = ( 740 | { 741 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 742 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 743 | }, 744 | { 745 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 746 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 747 | }, 748 | { 749 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 750 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 751 | }, 752 | { 753 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 754 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 755 | }, 756 | { 757 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 758 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 759 | }, 760 | { 761 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 762 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 763 | }, 764 | { 765 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 766 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 767 | }, 768 | { 769 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 770 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 771 | }, 772 | { 773 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 774 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 775 | }, 776 | { 777 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 778 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 779 | }, 780 | { 781 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 782 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 783 | }, 784 | { 785 | ProductGroup = 146834001AC3E56700842450 /* Products */; 786 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 787 | }, 788 | ); 789 | projectRoot = ""; 790 | targets = ( 791 | 13B07F861A680F5B00A75B9A /* NoteApp */, 792 | 00E356ED1AD99517003FC87E /* NoteAppTests */, 793 | 2D02E47A1E0B4A5D006451C7 /* NoteApp-tvOS */, 794 | 2D02E48F1E0B4A5D006451C7 /* NoteApp-tvOSTests */, 795 | ); 796 | }; 797 | /* End PBXProject section */ 798 | 799 | /* Begin PBXReferenceProxy section */ 800 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 801 | isa = PBXReferenceProxy; 802 | fileType = archive.ar; 803 | path = libRCTActionSheet.a; 804 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 805 | sourceTree = BUILT_PRODUCTS_DIR; 806 | }; 807 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 808 | isa = PBXReferenceProxy; 809 | fileType = archive.ar; 810 | path = libRCTGeolocation.a; 811 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 812 | sourceTree = BUILT_PRODUCTS_DIR; 813 | }; 814 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 815 | isa = PBXReferenceProxy; 816 | fileType = archive.ar; 817 | path = libRCTImage.a; 818 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 819 | sourceTree = BUILT_PRODUCTS_DIR; 820 | }; 821 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 822 | isa = PBXReferenceProxy; 823 | fileType = archive.ar; 824 | path = libRCTNetwork.a; 825 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 826 | sourceTree = BUILT_PRODUCTS_DIR; 827 | }; 828 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 829 | isa = PBXReferenceProxy; 830 | fileType = archive.ar; 831 | path = libRCTVibration.a; 832 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 833 | sourceTree = BUILT_PRODUCTS_DIR; 834 | }; 835 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 836 | isa = PBXReferenceProxy; 837 | fileType = archive.ar; 838 | path = libRCTSettings.a; 839 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 840 | sourceTree = BUILT_PRODUCTS_DIR; 841 | }; 842 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 843 | isa = PBXReferenceProxy; 844 | fileType = archive.ar; 845 | path = libRCTWebSocket.a; 846 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 847 | sourceTree = BUILT_PRODUCTS_DIR; 848 | }; 849 | 146834041AC3E56700842450 /* libReact.a */ = { 850 | isa = PBXReferenceProxy; 851 | fileType = archive.ar; 852 | path = libReact.a; 853 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 854 | sourceTree = BUILT_PRODUCTS_DIR; 855 | }; 856 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 857 | isa = PBXReferenceProxy; 858 | fileType = archive.ar; 859 | path = "libRCTBlob-tvOS.a"; 860 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 861 | sourceTree = BUILT_PRODUCTS_DIR; 862 | }; 863 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 864 | isa = PBXReferenceProxy; 865 | fileType = archive.ar; 866 | path = libfishhook.a; 867 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 868 | sourceTree = BUILT_PRODUCTS_DIR; 869 | }; 870 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 871 | isa = PBXReferenceProxy; 872 | fileType = archive.ar; 873 | path = "libfishhook-tvOS.a"; 874 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 875 | sourceTree = BUILT_PRODUCTS_DIR; 876 | }; 877 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = { 878 | isa = PBXReferenceProxy; 879 | fileType = archive.ar; 880 | path = libjsinspector.a; 881 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */; 882 | sourceTree = BUILT_PRODUCTS_DIR; 883 | }; 884 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = { 885 | isa = PBXReferenceProxy; 886 | fileType = archive.ar; 887 | path = "libjsinspector-tvOS.a"; 888 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */; 889 | sourceTree = BUILT_PRODUCTS_DIR; 890 | }; 891 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = { 892 | isa = PBXReferenceProxy; 893 | fileType = archive.ar; 894 | path = "libthird-party.a"; 895 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */; 896 | sourceTree = BUILT_PRODUCTS_DIR; 897 | }; 898 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = { 899 | isa = PBXReferenceProxy; 900 | fileType = archive.ar; 901 | path = "libthird-party.a"; 902 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */; 903 | sourceTree = BUILT_PRODUCTS_DIR; 904 | }; 905 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = { 906 | isa = PBXReferenceProxy; 907 | fileType = archive.ar; 908 | path = "libdouble-conversion.a"; 909 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */; 910 | sourceTree = BUILT_PRODUCTS_DIR; 911 | }; 912 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = { 913 | isa = PBXReferenceProxy; 914 | fileType = archive.ar; 915 | path = "libdouble-conversion.a"; 916 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */; 917 | sourceTree = BUILT_PRODUCTS_DIR; 918 | }; 919 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */ = { 920 | isa = PBXReferenceProxy; 921 | fileType = archive.ar; 922 | path = libprivatedata.a; 923 | remoteRef = 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */; 924 | sourceTree = BUILT_PRODUCTS_DIR; 925 | }; 926 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */ = { 927 | isa = PBXReferenceProxy; 928 | fileType = archive.ar; 929 | path = "libprivatedata-tvOS.a"; 930 | remoteRef = 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */; 931 | sourceTree = BUILT_PRODUCTS_DIR; 932 | }; 933 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 934 | isa = PBXReferenceProxy; 935 | fileType = archive.ar; 936 | path = "libRCTImage-tvOS.a"; 937 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 938 | sourceTree = BUILT_PRODUCTS_DIR; 939 | }; 940 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 941 | isa = PBXReferenceProxy; 942 | fileType = archive.ar; 943 | path = "libRCTLinking-tvOS.a"; 944 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 945 | sourceTree = BUILT_PRODUCTS_DIR; 946 | }; 947 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 948 | isa = PBXReferenceProxy; 949 | fileType = archive.ar; 950 | path = "libRCTNetwork-tvOS.a"; 951 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 952 | sourceTree = BUILT_PRODUCTS_DIR; 953 | }; 954 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 955 | isa = PBXReferenceProxy; 956 | fileType = archive.ar; 957 | path = "libRCTSettings-tvOS.a"; 958 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 959 | sourceTree = BUILT_PRODUCTS_DIR; 960 | }; 961 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 962 | isa = PBXReferenceProxy; 963 | fileType = archive.ar; 964 | path = "libRCTText-tvOS.a"; 965 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 966 | sourceTree = BUILT_PRODUCTS_DIR; 967 | }; 968 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 969 | isa = PBXReferenceProxy; 970 | fileType = archive.ar; 971 | path = "libRCTWebSocket-tvOS.a"; 972 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 973 | sourceTree = BUILT_PRODUCTS_DIR; 974 | }; 975 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 976 | isa = PBXReferenceProxy; 977 | fileType = archive.ar; 978 | path = libReact.a; 979 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 980 | sourceTree = BUILT_PRODUCTS_DIR; 981 | }; 982 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 983 | isa = PBXReferenceProxy; 984 | fileType = archive.ar; 985 | path = libyoga.a; 986 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 987 | sourceTree = BUILT_PRODUCTS_DIR; 988 | }; 989 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 990 | isa = PBXReferenceProxy; 991 | fileType = archive.ar; 992 | path = libyoga.a; 993 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 994 | sourceTree = BUILT_PRODUCTS_DIR; 995 | }; 996 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 997 | isa = PBXReferenceProxy; 998 | fileType = archive.ar; 999 | path = libcxxreact.a; 1000 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 1001 | sourceTree = BUILT_PRODUCTS_DIR; 1002 | }; 1003 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 1004 | isa = PBXReferenceProxy; 1005 | fileType = archive.ar; 1006 | path = libcxxreact.a; 1007 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 1008 | sourceTree = BUILT_PRODUCTS_DIR; 1009 | }; 1010 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 1011 | isa = PBXReferenceProxy; 1012 | fileType = archive.ar; 1013 | path = libjschelpers.a; 1014 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 1015 | sourceTree = BUILT_PRODUCTS_DIR; 1016 | }; 1017 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 1018 | isa = PBXReferenceProxy; 1019 | fileType = archive.ar; 1020 | path = libjschelpers.a; 1021 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 1022 | sourceTree = BUILT_PRODUCTS_DIR; 1023 | }; 1024 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1025 | isa = PBXReferenceProxy; 1026 | fileType = archive.ar; 1027 | path = libRCTAnimation.a; 1028 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1029 | sourceTree = BUILT_PRODUCTS_DIR; 1030 | }; 1031 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1032 | isa = PBXReferenceProxy; 1033 | fileType = archive.ar; 1034 | path = libRCTAnimation.a; 1035 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1036 | sourceTree = BUILT_PRODUCTS_DIR; 1037 | }; 1038 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1039 | isa = PBXReferenceProxy; 1040 | fileType = archive.ar; 1041 | path = libRCTLinking.a; 1042 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1043 | sourceTree = BUILT_PRODUCTS_DIR; 1044 | }; 1045 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1046 | isa = PBXReferenceProxy; 1047 | fileType = archive.ar; 1048 | path = libRCTText.a; 1049 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1050 | sourceTree = BUILT_PRODUCTS_DIR; 1051 | }; 1052 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1053 | isa = PBXReferenceProxy; 1054 | fileType = archive.ar; 1055 | path = libRCTBlob.a; 1056 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1057 | sourceTree = BUILT_PRODUCTS_DIR; 1058 | }; 1059 | /* End PBXReferenceProxy section */ 1060 | 1061 | /* Begin PBXResourcesBuildPhase section */ 1062 | 00E356EC1AD99517003FC87E /* Resources */ = { 1063 | isa = PBXResourcesBuildPhase; 1064 | buildActionMask = 2147483647; 1065 | files = ( 1066 | ); 1067 | runOnlyForDeploymentPostprocessing = 0; 1068 | }; 1069 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1070 | isa = PBXResourcesBuildPhase; 1071 | buildActionMask = 2147483647; 1072 | files = ( 1073 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1074 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1075 | ); 1076 | runOnlyForDeploymentPostprocessing = 0; 1077 | }; 1078 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1079 | isa = PBXResourcesBuildPhase; 1080 | buildActionMask = 2147483647; 1081 | files = ( 1082 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1083 | ); 1084 | runOnlyForDeploymentPostprocessing = 0; 1085 | }; 1086 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1087 | isa = PBXResourcesBuildPhase; 1088 | buildActionMask = 2147483647; 1089 | files = ( 1090 | ); 1091 | runOnlyForDeploymentPostprocessing = 0; 1092 | }; 1093 | /* End PBXResourcesBuildPhase section */ 1094 | 1095 | /* Begin PBXShellScriptBuildPhase section */ 1096 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1097 | isa = PBXShellScriptBuildPhase; 1098 | buildActionMask = 2147483647; 1099 | files = ( 1100 | ); 1101 | inputPaths = ( 1102 | ); 1103 | name = "Bundle React Native code and images"; 1104 | outputPaths = ( 1105 | ); 1106 | runOnlyForDeploymentPostprocessing = 0; 1107 | shellPath = /bin/sh; 1108 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1109 | }; 1110 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1111 | isa = PBXShellScriptBuildPhase; 1112 | buildActionMask = 2147483647; 1113 | files = ( 1114 | ); 1115 | inputPaths = ( 1116 | ); 1117 | name = "Bundle React Native Code And Images"; 1118 | outputPaths = ( 1119 | ); 1120 | runOnlyForDeploymentPostprocessing = 0; 1121 | shellPath = /bin/sh; 1122 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1123 | }; 1124 | /* End PBXShellScriptBuildPhase section */ 1125 | 1126 | /* Begin PBXSourcesBuildPhase section */ 1127 | 00E356EA1AD99517003FC87E /* Sources */ = { 1128 | isa = PBXSourcesBuildPhase; 1129 | buildActionMask = 2147483647; 1130 | files = ( 1131 | 00E356F31AD99517003FC87E /* NoteAppTests.m in Sources */, 1132 | ); 1133 | runOnlyForDeploymentPostprocessing = 0; 1134 | }; 1135 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1136 | isa = PBXSourcesBuildPhase; 1137 | buildActionMask = 2147483647; 1138 | files = ( 1139 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1140 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1141 | ); 1142 | runOnlyForDeploymentPostprocessing = 0; 1143 | }; 1144 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1145 | isa = PBXSourcesBuildPhase; 1146 | buildActionMask = 2147483647; 1147 | files = ( 1148 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1149 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1150 | ); 1151 | runOnlyForDeploymentPostprocessing = 0; 1152 | }; 1153 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1154 | isa = PBXSourcesBuildPhase; 1155 | buildActionMask = 2147483647; 1156 | files = ( 1157 | 2DCD954D1E0B4F2C00145EB5 /* NoteAppTests.m in Sources */, 1158 | ); 1159 | runOnlyForDeploymentPostprocessing = 0; 1160 | }; 1161 | /* End PBXSourcesBuildPhase section */ 1162 | 1163 | /* Begin PBXTargetDependency section */ 1164 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1165 | isa = PBXTargetDependency; 1166 | target = 13B07F861A680F5B00A75B9A /* NoteApp */; 1167 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1168 | }; 1169 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1170 | isa = PBXTargetDependency; 1171 | target = 2D02E47A1E0B4A5D006451C7 /* NoteApp-tvOS */; 1172 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1173 | }; 1174 | /* End PBXTargetDependency section */ 1175 | 1176 | /* Begin PBXVariantGroup section */ 1177 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1178 | isa = PBXVariantGroup; 1179 | children = ( 1180 | 13B07FB21A68108700A75B9A /* Base */, 1181 | ); 1182 | name = LaunchScreen.xib; 1183 | path = NoteApp; 1184 | sourceTree = ""; 1185 | }; 1186 | /* End PBXVariantGroup section */ 1187 | 1188 | /* Begin XCBuildConfiguration section */ 1189 | 00E356F61AD99517003FC87E /* Debug */ = { 1190 | isa = XCBuildConfiguration; 1191 | buildSettings = { 1192 | BUNDLE_LOADER = "$(TEST_HOST)"; 1193 | GCC_PREPROCESSOR_DEFINITIONS = ( 1194 | "DEBUG=1", 1195 | "$(inherited)", 1196 | ); 1197 | INFOPLIST_FILE = NoteAppTests/Info.plist; 1198 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1199 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1200 | OTHER_LDFLAGS = ( 1201 | "-ObjC", 1202 | "-lc++", 1203 | ); 1204 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1205 | PRODUCT_NAME = "$(TARGET_NAME)"; 1206 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NoteApp.app/NoteApp"; 1207 | LIBRARY_SEARCH_PATHS = ( 1208 | "$(inherited)", 1209 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1210 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1211 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1212 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1213 | ); 1214 | HEADER_SEARCH_PATHS = ( 1215 | "$(inherited)", 1216 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1217 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 1218 | ); 1219 | }; 1220 | name = Debug; 1221 | }; 1222 | 00E356F71AD99517003FC87E /* Release */ = { 1223 | isa = XCBuildConfiguration; 1224 | buildSettings = { 1225 | BUNDLE_LOADER = "$(TEST_HOST)"; 1226 | COPY_PHASE_STRIP = NO; 1227 | INFOPLIST_FILE = NoteAppTests/Info.plist; 1228 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1229 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1230 | OTHER_LDFLAGS = ( 1231 | "-ObjC", 1232 | "-lc++", 1233 | ); 1234 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1235 | PRODUCT_NAME = "$(TARGET_NAME)"; 1236 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NoteApp.app/NoteApp"; 1237 | LIBRARY_SEARCH_PATHS = ( 1238 | "$(inherited)", 1239 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1240 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1241 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1242 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1243 | ); 1244 | HEADER_SEARCH_PATHS = ( 1245 | "$(inherited)", 1246 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1247 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 1248 | ); 1249 | }; 1250 | name = Release; 1251 | }; 1252 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1253 | isa = XCBuildConfiguration; 1254 | buildSettings = { 1255 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1256 | CURRENT_PROJECT_VERSION = 1; 1257 | DEAD_CODE_STRIPPING = NO; 1258 | INFOPLIST_FILE = NoteApp/Info.plist; 1259 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1260 | OTHER_LDFLAGS = ( 1261 | "$(inherited)", 1262 | "-ObjC", 1263 | "-lc++", 1264 | ); 1265 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1266 | PRODUCT_NAME = NoteApp; 1267 | VERSIONING_SYSTEM = "apple-generic"; 1268 | HEADER_SEARCH_PATHS = ( 1269 | "$(inherited)", 1270 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1271 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 1272 | ); 1273 | }; 1274 | name = Debug; 1275 | }; 1276 | 13B07F951A680F5B00A75B9A /* Release */ = { 1277 | isa = XCBuildConfiguration; 1278 | buildSettings = { 1279 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1280 | CURRENT_PROJECT_VERSION = 1; 1281 | INFOPLIST_FILE = NoteApp/Info.plist; 1282 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1283 | OTHER_LDFLAGS = ( 1284 | "$(inherited)", 1285 | "-ObjC", 1286 | "-lc++", 1287 | ); 1288 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1289 | PRODUCT_NAME = NoteApp; 1290 | VERSIONING_SYSTEM = "apple-generic"; 1291 | HEADER_SEARCH_PATHS = ( 1292 | "$(inherited)", 1293 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1294 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 1295 | ); 1296 | }; 1297 | name = Release; 1298 | }; 1299 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1300 | isa = XCBuildConfiguration; 1301 | buildSettings = { 1302 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1303 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1304 | CLANG_ANALYZER_NONNULL = YES; 1305 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1306 | CLANG_WARN_INFINITE_RECURSION = YES; 1307 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1308 | DEBUG_INFORMATION_FORMAT = dwarf; 1309 | ENABLE_TESTABILITY = YES; 1310 | GCC_NO_COMMON_BLOCKS = YES; 1311 | INFOPLIST_FILE = "NoteApp-tvOS/Info.plist"; 1312 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1313 | OTHER_LDFLAGS = ( 1314 | "-ObjC", 1315 | "-lc++", 1316 | ); 1317 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.NoteApp-tvOS"; 1318 | PRODUCT_NAME = "$(TARGET_NAME)"; 1319 | SDKROOT = appletvos; 1320 | TARGETED_DEVICE_FAMILY = 3; 1321 | TVOS_DEPLOYMENT_TARGET = 9.2; 1322 | LIBRARY_SEARCH_PATHS = ( 1323 | "$(inherited)", 1324 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1325 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1326 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1327 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1328 | ); 1329 | HEADER_SEARCH_PATHS = ( 1330 | "$(inherited)", 1331 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1332 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 1333 | ); 1334 | }; 1335 | name = Debug; 1336 | }; 1337 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1338 | isa = XCBuildConfiguration; 1339 | buildSettings = { 1340 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1341 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1342 | CLANG_ANALYZER_NONNULL = YES; 1343 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1344 | CLANG_WARN_INFINITE_RECURSION = YES; 1345 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1346 | COPY_PHASE_STRIP = NO; 1347 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1348 | GCC_NO_COMMON_BLOCKS = YES; 1349 | INFOPLIST_FILE = "NoteApp-tvOS/Info.plist"; 1350 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1351 | OTHER_LDFLAGS = ( 1352 | "-ObjC", 1353 | "-lc++", 1354 | ); 1355 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.NoteApp-tvOS"; 1356 | PRODUCT_NAME = "$(TARGET_NAME)"; 1357 | SDKROOT = appletvos; 1358 | TARGETED_DEVICE_FAMILY = 3; 1359 | TVOS_DEPLOYMENT_TARGET = 9.2; 1360 | LIBRARY_SEARCH_PATHS = ( 1361 | "$(inherited)", 1362 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1363 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1364 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1365 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1366 | ); 1367 | HEADER_SEARCH_PATHS = ( 1368 | "$(inherited)", 1369 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1370 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 1371 | ); 1372 | }; 1373 | name = Release; 1374 | }; 1375 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1376 | isa = XCBuildConfiguration; 1377 | buildSettings = { 1378 | BUNDLE_LOADER = "$(TEST_HOST)"; 1379 | CLANG_ANALYZER_NONNULL = YES; 1380 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1381 | CLANG_WARN_INFINITE_RECURSION = YES; 1382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1383 | DEBUG_INFORMATION_FORMAT = dwarf; 1384 | ENABLE_TESTABILITY = YES; 1385 | GCC_NO_COMMON_BLOCKS = YES; 1386 | INFOPLIST_FILE = "NoteApp-tvOSTests/Info.plist"; 1387 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1388 | OTHER_LDFLAGS = ( 1389 | "-ObjC", 1390 | "-lc++", 1391 | ); 1392 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.NoteApp-tvOSTests"; 1393 | PRODUCT_NAME = "$(TARGET_NAME)"; 1394 | SDKROOT = appletvos; 1395 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NoteApp-tvOS.app/NoteApp-tvOS"; 1396 | TVOS_DEPLOYMENT_TARGET = 10.1; 1397 | LIBRARY_SEARCH_PATHS = ( 1398 | "$(inherited)", 1399 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1400 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1401 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1402 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1403 | ); 1404 | HEADER_SEARCH_PATHS = ( 1405 | "$(inherited)", 1406 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1407 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 1408 | ); 1409 | }; 1410 | name = Debug; 1411 | }; 1412 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1413 | isa = XCBuildConfiguration; 1414 | buildSettings = { 1415 | BUNDLE_LOADER = "$(TEST_HOST)"; 1416 | CLANG_ANALYZER_NONNULL = YES; 1417 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1418 | CLANG_WARN_INFINITE_RECURSION = YES; 1419 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1420 | COPY_PHASE_STRIP = NO; 1421 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1422 | GCC_NO_COMMON_BLOCKS = YES; 1423 | INFOPLIST_FILE = "NoteApp-tvOSTests/Info.plist"; 1424 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1425 | OTHER_LDFLAGS = ( 1426 | "-ObjC", 1427 | "-lc++", 1428 | ); 1429 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.NoteApp-tvOSTests"; 1430 | PRODUCT_NAME = "$(TARGET_NAME)"; 1431 | SDKROOT = appletvos; 1432 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NoteApp-tvOS.app/NoteApp-tvOS"; 1433 | TVOS_DEPLOYMENT_TARGET = 10.1; 1434 | LIBRARY_SEARCH_PATHS = ( 1435 | "$(inherited)", 1436 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1437 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1438 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1439 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1440 | ); 1441 | HEADER_SEARCH_PATHS = ( 1442 | "$(inherited)", 1443 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1444 | "$(SRCROOT)/../node_modules/react-native-svg/ios/**", 1445 | ); 1446 | }; 1447 | name = Release; 1448 | }; 1449 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1450 | isa = XCBuildConfiguration; 1451 | buildSettings = { 1452 | ALWAYS_SEARCH_USER_PATHS = NO; 1453 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1454 | CLANG_CXX_LIBRARY = "libc++"; 1455 | CLANG_ENABLE_MODULES = YES; 1456 | CLANG_ENABLE_OBJC_ARC = YES; 1457 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1458 | CLANG_WARN_BOOL_CONVERSION = YES; 1459 | CLANG_WARN_COMMA = YES; 1460 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1461 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1462 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1463 | CLANG_WARN_EMPTY_BODY = YES; 1464 | CLANG_WARN_ENUM_CONVERSION = YES; 1465 | CLANG_WARN_INFINITE_RECURSION = YES; 1466 | CLANG_WARN_INT_CONVERSION = YES; 1467 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1468 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1469 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1470 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1471 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1472 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1473 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1474 | CLANG_WARN_UNREACHABLE_CODE = YES; 1475 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1476 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1477 | COPY_PHASE_STRIP = NO; 1478 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1479 | ENABLE_TESTABILITY = YES; 1480 | GCC_C_LANGUAGE_STANDARD = gnu99; 1481 | GCC_DYNAMIC_NO_PIC = NO; 1482 | GCC_NO_COMMON_BLOCKS = YES; 1483 | GCC_OPTIMIZATION_LEVEL = 0; 1484 | GCC_PREPROCESSOR_DEFINITIONS = ( 1485 | "DEBUG=1", 1486 | "$(inherited)", 1487 | ); 1488 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1489 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1490 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1491 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1492 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1493 | GCC_WARN_UNUSED_FUNCTION = YES; 1494 | GCC_WARN_UNUSED_VARIABLE = YES; 1495 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1496 | MTL_ENABLE_DEBUG_INFO = YES; 1497 | ONLY_ACTIVE_ARCH = YES; 1498 | SDKROOT = iphoneos; 1499 | }; 1500 | name = Debug; 1501 | }; 1502 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1503 | isa = XCBuildConfiguration; 1504 | buildSettings = { 1505 | ALWAYS_SEARCH_USER_PATHS = NO; 1506 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1507 | CLANG_CXX_LIBRARY = "libc++"; 1508 | CLANG_ENABLE_MODULES = YES; 1509 | CLANG_ENABLE_OBJC_ARC = YES; 1510 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1511 | CLANG_WARN_BOOL_CONVERSION = YES; 1512 | CLANG_WARN_COMMA = YES; 1513 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1514 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1515 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1516 | CLANG_WARN_EMPTY_BODY = YES; 1517 | CLANG_WARN_ENUM_CONVERSION = YES; 1518 | CLANG_WARN_INFINITE_RECURSION = YES; 1519 | CLANG_WARN_INT_CONVERSION = YES; 1520 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1521 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1522 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1523 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1524 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1525 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1526 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1527 | CLANG_WARN_UNREACHABLE_CODE = YES; 1528 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1529 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1530 | COPY_PHASE_STRIP = YES; 1531 | ENABLE_NS_ASSERTIONS = NO; 1532 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1533 | GCC_C_LANGUAGE_STANDARD = gnu99; 1534 | GCC_NO_COMMON_BLOCKS = YES; 1535 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1536 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1537 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1538 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1539 | GCC_WARN_UNUSED_FUNCTION = YES; 1540 | GCC_WARN_UNUSED_VARIABLE = YES; 1541 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1542 | MTL_ENABLE_DEBUG_INFO = NO; 1543 | SDKROOT = iphoneos; 1544 | VALIDATE_PRODUCT = YES; 1545 | }; 1546 | name = Release; 1547 | }; 1548 | /* End XCBuildConfiguration section */ 1549 | 1550 | /* Begin XCConfigurationList section */ 1551 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "NoteAppTests" */ = { 1552 | isa = XCConfigurationList; 1553 | buildConfigurations = ( 1554 | 00E356F61AD99517003FC87E /* Debug */, 1555 | 00E356F71AD99517003FC87E /* Release */, 1556 | ); 1557 | defaultConfigurationIsVisible = 0; 1558 | defaultConfigurationName = Release; 1559 | }; 1560 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "NoteApp" */ = { 1561 | isa = XCConfigurationList; 1562 | buildConfigurations = ( 1563 | 13B07F941A680F5B00A75B9A /* Debug */, 1564 | 13B07F951A680F5B00A75B9A /* Release */, 1565 | ); 1566 | defaultConfigurationIsVisible = 0; 1567 | defaultConfigurationName = Release; 1568 | }; 1569 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "NoteApp-tvOS" */ = { 1570 | isa = XCConfigurationList; 1571 | buildConfigurations = ( 1572 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1573 | 2D02E4981E0B4A5E006451C7 /* Release */, 1574 | ); 1575 | defaultConfigurationIsVisible = 0; 1576 | defaultConfigurationName = Release; 1577 | }; 1578 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "NoteApp-tvOSTests" */ = { 1579 | isa = XCConfigurationList; 1580 | buildConfigurations = ( 1581 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1582 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1583 | ); 1584 | defaultConfigurationIsVisible = 0; 1585 | defaultConfigurationName = Release; 1586 | }; 1587 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "NoteApp" */ = { 1588 | isa = XCConfigurationList; 1589 | buildConfigurations = ( 1590 | 83CBBA201A601CBA00E9B192 /* Debug */, 1591 | 83CBBA211A601CBA00E9B192 /* Release */, 1592 | ); 1593 | defaultConfigurationIsVisible = 0; 1594 | defaultConfigurationName = Release; 1595 | }; 1596 | /* End XCConfigurationList section */ 1597 | }; 1598 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1599 | } 1600 | -------------------------------------------------------------------------------- /ios/NoteApp.xcodeproj/xcshareddata/xcschemes/NoteApp-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/NoteApp.xcodeproj/xcshareddata/xcschemes/NoteApp.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/NoteApp/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/NoteApp/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 20 | moduleName:@"NoteApp" 21 | initialProperties:nil]; 22 | 23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 24 | 25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 26 | UIViewController *rootViewController = [UIViewController new]; 27 | rootViewController.view = rootView; 28 | self.window.rootViewController = rootViewController; 29 | [self.window makeKeyAndVisible]; 30 | return YES; 31 | } 32 | 33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 34 | { 35 | #if DEBUG 36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 37 | #else 38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 39 | #endif 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios/NoteApp/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/NoteApp/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/NoteApp/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/NoteApp/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | NoteApp 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSLocationWhenInUseUsageDescription 28 | 29 | UILaunchStoryboardName 30 | LaunchScreen 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UIViewControllerBasedStatusBarAppearance 42 | 43 | NSLocationWhenInUseUsageDescription 44 | 45 | NSAppTransportSecurity 46 | 47 | 48 | NSAllowsArbitraryLoads 49 | 50 | NSExceptionDomains 51 | 52 | localhost 53 | 54 | NSExceptionAllowsInsecureHTTPLoads 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /ios/NoteApp/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/NoteAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/NoteAppTests/NoteAppTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 16 | 17 | @interface NoteAppTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation NoteAppTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 44 | if (level >= RCTLogLevelError) { 45 | redboxError = message; 46 | } 47 | }); 48 | 49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 52 | 53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 55 | return YES; 56 | } 57 | return NO; 58 | }]; 59 | } 60 | 61 | RCTSetLogFunction(RCTDefaultLogFunction); 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NoteApp", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "@fortawesome/fontawesome-svg-core": "^1.2.19", 11 | "@fortawesome/free-brands-svg-icons": "^5.9.0", 12 | "@fortawesome/free-regular-svg-icons": "^5.9.0", 13 | "@fortawesome/free-solid-svg-icons": "^5.9.0", 14 | "@fortawesome/react-native-fontawesome": "^0.1.0", 15 | "axios": "^0.19.0", 16 | "lodash": "^4.17.11", 17 | "react": "16.8.3", 18 | "react-native": "0.59.9", 19 | "react-native-circular-progress": "^1.1.0", 20 | "react-native-fab": "^1.0.8", 21 | "react-native-gesture-handler": "^1.3.0", 22 | "react-native-material-dropdown": "^0.11.1", 23 | "react-native-svg": "^9.5.1", 24 | "react-navigation": "^3.11.0", 25 | "react-redux": "^7.1.0", 26 | "redux": "^4.0.1", 27 | "redux-logger": "^3.0.6", 28 | "redux-promise-middleware": "^6.1.1" 29 | }, 30 | "devDependencies": { 31 | "@babel/core": "7.4.5", 32 | "@babel/runtime": "7.4.5", 33 | "babel-jest": "24.8.0", 34 | "jest": "24.8.0", 35 | "metro-react-native-babel-preset": "0.54.1", 36 | "react-test-renderer": "16.8.3" 37 | }, 38 | "jest": { 39 | "preset": "react-native" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Assets/DummyData/Categories.js: -------------------------------------------------------------------------------- 1 | const Categories = [ 2 | { 3 | id : 1, 4 | name : 'Personal' 5 | }, 6 | { 7 | id : 2, 8 | name : 'Work' 9 | }, 10 | { 11 | id : 3, 12 | name : 'Wishlist' 13 | }, 14 | ] 15 | module.exports = Categories; -------------------------------------------------------------------------------- /src/Assets/DummyData/Color.js: -------------------------------------------------------------------------------- 1 | const Color = [ 2 | '#66CCCC', 3 | '#36465D', 4 | '#00A68C', 5 | '#BFD833' 6 | ] 7 | module.exports = Color; -------------------------------------------------------------------------------- /src/Assets/DummyData/Notes.js: -------------------------------------------------------------------------------- 1 | const Notes = [ 2 | { 3 | id : 10, 4 | title: 'Say No Indomie', 5 | note:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus diam nulla, dignissim sed pretium vel, dictum ac nibh. Aenean a ullamcorper orci. Interdum et malesuada fames ac ante ipsum primis in faucibus.', 6 | category: 'Personal', 7 | create_at: '22 jan', 8 | update_at: '23 jan' 9 | }, 10 | { 11 | id : 20, 12 | title: 'Being Healthy', 13 | note:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus diam nulla, dignissim sed pretium vel, dictum ac nibh. Aenean a ullamcorper orci. Interdum et malesuada fames ac ante ipsum primis in faucibus.', 14 | category: 'Work', 15 | create_at: '22 jan', 16 | update_at: '23 jan' 17 | }, 18 | { 19 | id : 30, 20 | title: 'Ahmad Hadi', 21 | note:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus diam nulla, dignissim sed pretium vel, dictum ac nibh. Aenean a ullamcorper orci. Interdum et malesuada fames ac ante ipsum primis in faucibus.', 22 | category: 'Wishlist', 23 | create_at: '22 jan', 24 | update_at: '23 jan' 25 | }, 26 | { 27 | id : 4, 28 | title: 'Arkademy', 29 | note:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus diam nulla, dignissim sed pretium vel, dictum ac nibh. Aenean a ullamcorper orci. Interdum et malesuada fames ac ante ipsum primis in faucibus.', 30 | category: 'Work', 31 | create_at: '22 jan', 32 | update_at: '23 jan' 33 | }, 34 | { 35 | id : 5, 36 | title: 'Stok Mie Habis', 37 | note:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus diam nulla, dignissim sed pretium vel, dictum ac nibh. Aenean a ullamcorper orci. Interdum et malesuada fames ac ante ipsum primis in faucibus.', 38 | category: 'Wishlist', 39 | create_at: '22 jan', 40 | update_at: '23 jan' 41 | }, 42 | { 43 | id : 6, 44 | title: 'Solat 5 waktu', 45 | note:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus diam nulla, dignissim sed pretium vel, dictum ac nibh. Aenean a ullamcorper orci. Interdum et malesuada fames ac ante ipsum primis in faucibus.', 46 | category: 'Wishlist', 47 | create_at: '22 jan', 48 | update_at: '23 jan' 49 | }, 50 | { 51 | id : 7, 52 | title: 'Makan OatMeal', 53 | note:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus diam nulla, dignissim sed pretium vel, dictum ac nibh. Aenean a ullamcorper orci. Interdum et malesuada fames ac ante ipsum primis in faucibus.', 54 | category: 'Personal', 55 | create_at: '22 jan', 56 | update_at: '23 jan' 57 | }, 58 | { 59 | id : 8, 60 | title: 'Stop Ngopi', 61 | note:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus diam nulla, dignissim sed pretium vel, dictum ac nibh. Aenean a ullamcorper orci. Interdum et malesuada fames ac ante ipsum primis in faucibus.', 62 | category: 'Personal', 63 | create_at: '22 jan', 64 | update_at: '23 jan' 65 | }, 66 | ] 67 | 68 | module.exports = Notes; -------------------------------------------------------------------------------- /src/Assets/DummyData/insertdeletecategory.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/DummyData/insertdeletecategory.gif -------------------------------------------------------------------------------- /src/Assets/DummyData/insertdeletenote.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/DummyData/insertdeletenote.gif -------------------------------------------------------------------------------- /src/Assets/DummyData/scrolling.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/DummyData/scrolling.gif -------------------------------------------------------------------------------- /src/Assets/DummyData/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/DummyData/search.gif -------------------------------------------------------------------------------- /src/Assets/DummyData/sort.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/DummyData/sort.gif -------------------------------------------------------------------------------- /src/Assets/DummyData/sortbycategory.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/DummyData/sortbycategory.gif -------------------------------------------------------------------------------- /src/Assets/DummyData/updatenote.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/DummyData/updatenote.gif -------------------------------------------------------------------------------- /src/Assets/Image/Shaloom-Razade.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/Shaloom-Razade.jpeg -------------------------------------------------------------------------------- /src/Assets/Image/icon/001-advertising.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/001-advertising.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/002-airplane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/002-airplane.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/003-backpack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/003-backpack.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/004-calendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/004-calendar.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/005-rent-a-car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/005-rent-a-car.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/006-catalog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/006-catalog.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/007-smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/007-smile.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/008-forum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/008-forum.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/009-guide-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/009-guide-book.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/010-hotel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/010-hotel.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/011-hotel-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/011-hotel-1.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/012-hotels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/012-hotels.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/013-location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/013-location.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/014-luggage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/014-luggage.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/015-manual.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/015-manual.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/016-vacation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/016-vacation.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/017-information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/017-information.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/018-passport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/018-passport.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/019-photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/019-photo.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/020-review.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/020-review.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/021-compass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/021-compass.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/022-baggage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/022-baggage.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/023-binoculars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/023-binoculars.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/024-column.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/024-column.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/025-story.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/025-story.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/026-taxi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/026-taxi.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/027-thumb-up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/027-thumb-up.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/028-suitcase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/028-suitcase.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/029-tourist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/029-tourist.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/030-train.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/030-train.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/031-loupe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/031-loupe.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/032-video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/032-video.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/033-village.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/033-village.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/034-visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/034-visa.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/035-weather.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/035-weather.png -------------------------------------------------------------------------------- /src/Assets/Image/icon/036-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/icon/036-world.png -------------------------------------------------------------------------------- /src/Assets/Image/img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Assets/Image/img.jpg -------------------------------------------------------------------------------- /src/Components/ActionBarImage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { StyleSheet, View, Text, Image } from 'react-native'; 3 | 4 | export default class ActionBarImage extends Component { 5 | render() { 6 | return ( 7 | 8 | 19 | 20 | ); 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /src/Components/Card.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {TouchableOpacity, Text, Alert, StyleSheet} from 'react-native'; 3 | 4 | // import connect to connect with redux store 5 | import { connect } from 'react-redux'; 6 | 7 | // import action 8 | import { deleteNotes} from '../Public/redux/action/notes'; 9 | 10 | class Card extends Component{ 11 | constructor(props){ 12 | super(props); 13 | this.state = { 14 | createdAt : new Date(this.props.data.created_at), 15 | monthList : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 16 | cardColor : this.props.data.category_id == '1' ? '#66CCCC' : this.props.data.category_id == '2' ? '#36465D' : this.props.data.category_id == '3' ? '#00A68C' : this.props.data.category_id == '4' ? '#660033' : this.props.data.category_id == '5' ? '#666699' : this.props.data.category_id == '6' ? '#33CCCC' : this.props.data.category_id == '7' ? '#999966' : this.props.data.category_id == '8' ? '#996633' : this.props.data.category_id == '9' ? '#336633' : this.props.data.category_id == '10' ? '#990066' : this.props.data.category_id == '11' ? '#33CC99' : this.props.data.category_id == '12' ? '#CCFFCC' : this.props.data.category_id == '13' ? '#003300' : this.props.data.category_id == '14' ? '#660000' : this.props.data.category_id == '17' ? '#33CC99' : this.props.data.category_id == '18' ? '#00A68C' : this.props.data.category_id == '19' ? '#10A68C' : this.props.data.category_id == '20' ? '#00A64C' : this.props.data.category_id == '21' ? '#21A68C' : this.props.data.category_id == '22' ? '#06268C' : this.props.data.category_id == '23' ? '#00A68C' : '#BFD833', 17 | }; 18 | } 19 | deleteNote(id){ 20 | if(id !== undefined){ 21 | this.props.dispatch(deleteNotes(id)) 22 | } 23 | this.props.navigation.navigate('Home'); 24 | } 25 | deleteHandler(item){ 26 | Alert.alert( 27 | 'Are you sure you want to delete this note ?', 28 | 'This note will be deleted immediately, you can\'t undo this action.', 29 | [ 30 | { text: 'Cancel', onPress: () => console.log('delete canceled')}, 31 | {text: 'OK', onPress: () => this.deleteNote(item.id)}, 32 | ], 33 | {cancelable: false}, 34 | ); 35 | } 36 | render(){ 37 | return( 38 | { this.props.navigation.navigate('EditNote', this.props.data)}} 40 | onLongPress={()=>{this.deleteHandler(this.props.data)}} 41 | style={[styles.card,{backgroundColor:this.state.cardColor}]}> 42 | 43 | {this.state.createdAt.getDate()} {this.state.monthList[this.state.createdAt.getMonth()]} 44 | {this.props.data.title} 45 | {this.props.data.category} 46 | {this.props.data.note} 47 | 48 | 49 | ) 50 | } 51 | }; 52 | 53 | // map state to props to referring data in store 54 | const mapStateToProps = state => { 55 | return { 56 | notes: state.notes 57 | } 58 | } 59 | 60 | // connect with redux,first param is map and second is component 61 | export default connect(mapStateToProps)(Card); 62 | 63 | 64 | const styles = StyleSheet.create({ 65 | card: { 66 | shadowColor: "#000", 67 | shadowOffset: { 68 | width: 0, 69 | height: 5, 70 | }, 71 | shadowOpacity: 0.34, 72 | shadowRadius: 6.27, 73 | 74 | elevation: 10, 75 | shadowRadius: 5, 76 | shadowOpacity: 1.0, 77 | borderRadius: 5, 78 | margin:20, 79 | paddingRight:20, 80 | width:138, 81 | height:136, 82 | color: '#fff', 83 | }, 84 | create:{ 85 | fontSize:11, 86 | alignSelf:'flex-end', 87 | color: '#fff', 88 | right:-10, 89 | top:5 90 | }, 91 | title:{ 92 | fontSize: 16, 93 | fontWeight: 'bold', 94 | color: '#fff', 95 | top:10, 96 | left:10, 97 | }, 98 | category:{ 99 | color: '#FFFBFB', 100 | fontSize: 10, 101 | top:8, 102 | left:10 103 | }, 104 | note:{ 105 | color: '#fff', 106 | fontSize:12, 107 | top:10, 108 | left:10 109 | } 110 | }); -------------------------------------------------------------------------------- /src/Components/CategoryModal.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {Dimensions, StyleSheet, Text, TextInput, View, TouchableOpacity} from 'react-native'; 3 | 4 | // import connect to connect with redux store 5 | import { connect } from 'react-redux'; 6 | 7 | // import action 8 | import { insertCategories} from '../Public/redux/action/notes'; 9 | 10 | class CategoryModal extends Component { 11 | 12 | constructor(props){ 13 | super(props); 14 | this.state = { 15 | name : '', 16 | image_url : '', 17 | width : Dimensions.get('window').width, 18 | }; 19 | Dimensions.addEventListener('change', (e) => { 20 | this.setState(e.window); 21 | }); 22 | } 23 | 24 | closeModal = () => { 25 | this.props.setModalVisibility(false); 26 | } 27 | 28 | insertCategories = () => { 29 | const {name, image_url} = this.state; 30 | if(name !== ''){ 31 | this.props.dispatch(insertCategories({name, image_url})) 32 | } 33 | this.closeModal(); 34 | } 35 | 36 | render (){ 37 | return ( 38 | 39 | this.closeModal()} > 40 | 41 | 42 | this.setState({name:text})} underlineColorAndroid={'#2ED1A2'} style={styles.textInput}/> 43 | this.setState({image_url:text})} underlineColorAndroid={'#2ED1A2'} style={styles.textInput}/> 44 | 45 | 46 | this.insertCategories()} > 47 | Add 48 | 49 | this.closeModal()} > 50 | Cancel 51 | 52 | 53 | 54 | 55 | ) 56 | } 57 | } 58 | 59 | // map state to props to referring data in store 60 | const mapStateToProps = state => { 61 | return { 62 | notes: state.notes 63 | } 64 | } 65 | // connect with redux,first param is map and second is component 66 | export default connect(mapStateToProps)(CategoryModal) 67 | 68 | const styles = StyleSheet.create({ 69 | contentContainer: { 70 | flex:1, 71 | alignContent:'center', 72 | justifyContent:'center', 73 | }, 74 | contentSide:{ 75 | flex:1, 76 | opacity:0.5, 77 | backgroundColor:'gray' 78 | }, 79 | modal:{ 80 | right:60, 81 | width:230, 82 | paddingTop:20, 83 | backgroundColor:'#FFF', 84 | position:'absolute', 85 | alignContent:'center', 86 | justifyContent:'center', 87 | 88 | shadowColor: "#000", 89 | shadowOffset: { 90 | width: 0, 91 | height: 0, 92 | }, 93 | shadowOpacity: 0.6, 94 | elevation: 3, 95 | borderRadius:5, 96 | }, 97 | text:{ 98 | left:10, 99 | fontSize:15, 100 | color:'#000' 101 | }, 102 | textInput:{ 103 | marginLeft:30, 104 | marginRight:30, 105 | }, 106 | footer:{ 107 | flex:1, 108 | flexDirection:'row', 109 | justifyContent:'flex-end', 110 | padding:15, 111 | }, 112 | addButton:{ 113 | marginRight:15, 114 | }, 115 | cancelButton:{ 116 | marginRight:10, 117 | } 118 | }); -------------------------------------------------------------------------------- /src/Components/DrawerNavigation.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import { Alert, StyleSheet, Modal, ScrollView, View,Image, Text, TouchableOpacity } from 'react-native'; 3 | import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'; 4 | import { faPlusCircle } from '@fortawesome/free-solid-svg-icons'; 5 | import CategoryModal from '../Components/CategoryModal'; 6 | 7 | 8 | // import connect to connect with redux store 9 | import { connect } from 'react-redux'; 10 | 11 | // import action 12 | import { deleteCategories, getNotes } from '../Public/redux/action/notes'; 13 | 14 | 15 | class DrawerNavigation extends Component { 16 | constructor(props){ 17 | super(props); 18 | 19 | this.state = { 20 | _ModalVisible:false, 21 | }; 22 | } 23 | 24 | setModalVisibility = (bool) => { 25 | this.setState({ _ModalVisible: bool}); 26 | } 27 | 28 | selectCategory(selectedCategory){ 29 | let {search, sort} = this.props.notes; 30 | this.props.dispatch(getNotes({sort, search, selectedCategory})); 31 | } 32 | 33 | deleteCategory(id){ 34 | if(id !== undefined){ 35 | this.props.dispatch(deleteCategories(id)) 36 | } 37 | this.props.navigation.navigate('Home'); 38 | } 39 | deleteHandler(category){ 40 | Alert.alert( 41 | 'Are you sure you want to delete this category ?', 42 | 'This note will be deleted immediately, you can\'t undo this action.', 43 | [ 44 | { text: 'Cancel', onPress: () => console.log('delete canceled')}, 45 | {text: 'OK', onPress: () => this.deleteCategory(category.id)}, 46 | ], 47 | {cancelable: false}, 48 | ); 49 | } 50 | 51 | render() { 52 | return ( 53 | 54 | 55 | 57 | 58 | 59 | Shaloom Razade 60 | 61 | 62 | 63 | {this.props.notes.dataCategory.map((category, key) => 64 | {this.deleteHandler(category)}} onPress={() => {this.selectCategory(category.id)}} key={key} style={styles.listItem}> 65 | 68 | {category.name} 69 | 70 | )} 71 | 72 | this.setModalVisibility(true)} style={styles.listItem}> 73 | 74 | Add Category 75 | 76 | 77 | this.changeModalVisibility(false)}> 78 | 79 | 80 | 81 | ) 82 | } 83 | } 84 | 85 | // map state to props to referring data in store 86 | const mapStateToProps = state => { 87 | return { 88 | notes: state.notes 89 | } 90 | } 91 | 92 | // connect with redux,first param is map and second is component 93 | export default connect(mapStateToProps)(DrawerNavigation) 94 | 95 | const styles = StyleSheet.create({ 96 | container:{ 97 | flex: 1, 98 | margin: 5 99 | }, 100 | image:{ 101 | width: 86, 102 | height: 86, 103 | borderRadius: 85 / 2, 104 | marginTop:35, 105 | left:70 106 | }, 107 | headerText:{ 108 | width: 143, 109 | height: 22, 110 | left: 51, 111 | marginTop: 20, 112 | 113 | fontFamily: 'Open Sans', 114 | fontStyle: 'normal', 115 | fontWeight: '600', 116 | fontSize: 17, 117 | lineHeight: 23, 118 | color:'#000000' 119 | }, 120 | list: { 121 | marginTop: 20, 122 | }, 123 | listItem:{ 124 | height:50, 125 | flexDirection:'row', 126 | }, 127 | listIcon:{ 128 | left:15, 129 | width: 20, 130 | height: 20 131 | }, 132 | listText: { 133 | fontFamily: 'Open Sans', 134 | fontStyle: 'normal', 135 | fontWeight: '300', 136 | fontSize: 17, 137 | color:'#000000', 138 | lineHeight: 23, 139 | 140 | left:20 141 | 142 | }, 143 | }) -------------------------------------------------------------------------------- /src/Components/Fab.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {TouchableOpacity, Text, StyleSheet} from 'react-native'; 3 | import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'; 4 | import { faPlus } from '@fortawesome/free-solid-svg-icons'; 5 | 6 | export default class Fab extends Component { 7 | constructor(props){ 8 | super(props); 9 | } 10 | 11 | render(){ 12 | return( 13 | this.props.navigation.navigate('AddNote')} style={styles.fab}> 14 | 15 | 16 | )}; 17 | }; 18 | 19 | const styles = StyleSheet.create({ 20 | fab: { 21 | position: 'absolute', 22 | width: 56, 23 | height: 56, 24 | alignItems: 'center', 25 | justifyContent: 'center', 26 | right: 20, 27 | bottom: 30, 28 | backgroundColor: '#FFF', 29 | borderRadius: 30, 30 | elevation: 2, 31 | color: '#000' 32 | }, 33 | }); -------------------------------------------------------------------------------- /src/Components/HeaderNavigation.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {Image, Modal, View, TouchableOpacity, Text, StyleSheet} from "react-native"; 3 | import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'; 4 | import { faSortAmountDownAlt, faArrowLeft, faCheck } from '@fortawesome/free-solid-svg-icons'; 5 | import SortModal from '../Components/SortModal'; 6 | 7 | 8 | class HeaderMenu extends Component { 9 | constructor(props){ 10 | super(props); 11 | 12 | this.state = { 13 | _ModalVisible:false, 14 | notes: [] 15 | }; 16 | } 17 | 18 | setModalVisibility = (bool) => { 19 | this.setState({ _ModalVisible: bool}); 20 | } 21 | 22 | HomeNavigation(){ 23 | return ( 24 | 25 | this.props.navigation.openDrawer()} style={styles.leftHeader}> 26 | 27 | 28 | 29 | NOTE APP 30 | 31 | this.setModalVisibility(true)} style={styles.rightHeader}> 32 | 33 | 34 | this.changeModalVisibility(false)}> 35 | 36 | 37 | 38 | ); 39 | } 40 | 41 | AddNoteNavigation(){ 42 | return ( 43 | 44 | this.props.navigation.goBack()} style={styles.leftHeader}> 45 | 46 | 47 | 48 | ADD NOTE 49 | 50 | 51 | 52 | 53 | 54 | ); 55 | } 56 | 57 | EditNoteNavigation(){ 58 | return ( 59 | 60 | this.props.navigation.goBack()} style={styles.leftHeader}> 61 | 62 | 63 | 64 | EDIT NOTE 65 | 66 | 67 | 68 | 69 | 70 | ); 71 | } 72 | 73 | render() { 74 | return( 75 | this.props.screen == 'Home' ? this.HomeNavigation() : 76 | this.props.screen == 'AddNote' ? this.AddNoteNavigation() : 77 | this.props.screen == 'EditNote' ? this.EditNoteNavigation() : null 78 | ) 79 | } 80 | } 81 | export default HeaderMenu; 82 | 83 | const styles = StyleSheet.create({ 84 | headerContainer:{ 85 | flexDirection:'row', 86 | height:50, 87 | backgroundColor:'#FFF', 88 | shadowColor: "#000", 89 | shadowOffset: { 90 | width: 0, 91 | height: 0, 92 | }, 93 | shadowOpacity: 0.6, 94 | elevation: 3, 95 | alignItems:'center' 96 | }, 97 | leftHeader:{ 98 | left:10, 99 | padding:5 100 | }, 101 | headerTitle:{ 102 | color:'#000', 103 | 104 | }, 105 | rightHeader:{ 106 | right:10, 107 | padding:5 108 | }, 109 | }); -------------------------------------------------------------------------------- /src/Components/SortModal.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {Dimensions, StyleSheet, Text, View, TouchableOpacity} from 'react-native'; 3 | 4 | // import connect to connect with redux store 5 | import { connect } from 'react-redux'; 6 | 7 | // import action 8 | import { getNotes } from '../Public/redux/action/notes'; 9 | 10 | class SortModal extends Component { 11 | 12 | constructor(props){ 13 | super(props); 14 | this.state = { 15 | width: Dimensions.get('window').width, 16 | }; 17 | Dimensions.addEventListener('change', (e) => { 18 | this.setState(e.window); 19 | }); 20 | } 21 | 22 | closeModal = () => { 23 | this.props.setModalVisibility(false); 24 | } 25 | sortData(sort){ 26 | let {search, selectedCategory} = this.props.notes; 27 | this.props.dispatch(getNotes({sort, search, selectedCategory})); 28 | } 29 | 30 | render (){ 31 | return ( 32 | 33 | this.closeModal()} > 34 | 35 | this.sortData('ASC')} style={styles.buttonView}> 36 | ASCENDING 37 | 38 | this.sortData('DESC')} style={styles.buttonView}> 39 | DESCENDING 40 | 41 | 42 | 43 | ) 44 | } 45 | } 46 | 47 | // map state to props to referring data in store 48 | const mapStateToProps = state => { 49 | return { 50 | notes: state.notes 51 | } 52 | } 53 | 54 | // connect with redux,first param is map and second is component 55 | export default connect(mapStateToProps)(SortModal) 56 | 57 | const styles = StyleSheet.create({ 58 | contentContainer: { 59 | top:50, 60 | flex:1, 61 | }, 62 | contentSide:{ 63 | flex:1, 64 | opacity:0 65 | }, 66 | modal:{ 67 | backgroundColor:'#FFF', 68 | position:'absolute', 69 | right:5, 70 | top:5, 71 | alignContent:'center', 72 | justifyContent:'center', 73 | 74 | shadowColor: "#000", 75 | shadowOffset: { 76 | width: 0, 77 | height: 0, 78 | }, 79 | shadowOpacity: 0.6, 80 | elevation: 3, 81 | borderRadius:3 82 | }, 83 | text:{ 84 | left:3, 85 | fontSize:15, 86 | color:'#000' 87 | }, 88 | buttonView:{ 89 | padding:10, 90 | margin:10 91 | } 92 | 93 | }); -------------------------------------------------------------------------------- /src/Public/redux/action/notes.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; // import axios for getting data from API 2 | 3 | const IP = 'http://192.168.6.181:3000'; // IP Backend 4 | 5 | /*=========================================* 6 | *=============== N O T E S ===============* 7 | *=========================================*/ 8 | 9 | export const getNotes = (data) => { // data values : sort, search, _selectedCategory 10 | return { 11 | type: 'GET_NOTES', 12 | payload: axios.get(`${IP}/notes?sort=${data.sort}&search=${data.search}&category_id=${data.selectedCategory}`) 13 | } 14 | } 15 | 16 | export const getMore = (data) => { // data values : sort, search, _selectedCategory 17 | return { 18 | type: 'GET_NOTES', 19 | payload: axios.get(`${IP}/notes?sort=${data.sort}&search=${data.search}&category_id=${data.selectedCategory}`) 20 | } 21 | } 22 | 23 | export const getMoreNotes = (data) => { // data values : nextPage, sort, search, _selectedCategory 24 | return { 25 | type: 'GET_MORE_NOTES', 26 | payload: axios.get(`${IP}/notes?sort=${data.sort}&page=${data.nextPage}&search=${data.search}&category_id=${data.selectedCategory}`) 27 | } 28 | } 29 | 30 | export const insertNotes = (data) => { 31 | return { 32 | type: 'INSERT_NOTES', 33 | payload: axios.post(`${IP}/notes`,data) 34 | } 35 | } 36 | 37 | export const updateNotes = (data) => { 38 | return { 39 | type: 'UPDATE_NOTES', 40 | payload: axios.patch(`${IP}/notes/${data.id}`,data) 41 | } 42 | } 43 | 44 | export const deleteNotes = (id) => { 45 | return { 46 | type: 'DELETE_NOTES', 47 | payload: axios.delete(`${IP}/notes/${id}`) 48 | } 49 | } 50 | 51 | 52 | /*===================================================* 53 | *=============== C A T E G O R I E S ===============* 54 | *===================================================*/ 55 | 56 | export const getCategories = () => { 57 | return { 58 | type: 'GET_CATEGORIES', 59 | payload: axios.get(`${IP}/categories`) 60 | } 61 | } 62 | 63 | export const insertCategories = (data) => { 64 | return { 65 | type: 'INSERT_CATEGORIES', 66 | payload: axios.post(`${IP}/categories`,data) 67 | } 68 | } 69 | 70 | export const deleteCategories = (id) => { 71 | return { 72 | type: 'DELETE_CATEGORIES', 73 | payload: axios.delete(`${IP}/categories/${id}`) 74 | } 75 | } -------------------------------------------------------------------------------- /src/Public/redux/reducer/index.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | 3 | // import all reducers 4 | import notes from './notes'; 5 | 6 | // combine them 7 | const appReducer = combineReducers({ 8 | notes 9 | }) 10 | 11 | export default appReducer; -------------------------------------------------------------------------------- /src/Public/redux/reducer/notes.js: -------------------------------------------------------------------------------- 1 | 2 | const initialState = { 3 | results : [], 4 | page : '', 5 | nextPage : '', 6 | sort : '', 7 | search : '', 8 | selectedCategory : '', 9 | isLoading : false, 10 | isError : false, 11 | data : [], 12 | dataCategory : [], 13 | } 14 | 15 | // create a reducer for getting network from RESTful API 16 | export default notes = (state = initialState, action) => { 17 | let tempData = state; 18 | switch(action.type){ 19 | 20 | /*=========================================* 21 | *=============== N O T E S ===============* 22 | *=========================================*/ 23 | 24 | case 'GET_NOTES_PENDING': // in case when loading get data 25 | return { 26 | ...state, 27 | isLoading : true 28 | } 29 | case 'GET_NOTES_REJECTED': // in case error network/else 30 | return { 31 | ...state, 32 | isLoading : false, 33 | isError : true, 34 | } 35 | case 'GET_NOTES_FULFILLED': // in case successfuly get data 36 | return { 37 | ...state, 38 | isLoading : false, 39 | isError : false, 40 | page : action.payload.data.page, 41 | nextPage : parseInt(action.payload.data.page)+1, 42 | sort : action.payload.data.sort, 43 | search : action.payload.data.search, 44 | selectedCategory : action.payload.data.category, 45 | data : action.payload.data.value 46 | } 47 | 48 | // case 'GET_MORE_NOTES_PENDING': // in case when loading get data 49 | // return { 50 | // ...state, 51 | // isLoading : true 52 | // } 53 | // case 'GET_MORE_NOTES_REJECTED': // in case error network/else 54 | // return { 55 | // ...state, 56 | // isLoading : false, 57 | // isError : true, 58 | // } 59 | 60 | case 'GET_MORE_NOTES_FULFILLED': // in case successfuly get data 61 | return { 62 | ...state, 63 | isLoading : false, 64 | isError : false, 65 | page : action.payload.data.page, 66 | nextPage : parseInt(action.payload.data.page)+1, 67 | sort : action.payload.data.sort, 68 | search : action.payload.data.search, 69 | selectedCategory : action.payload.data.category, 70 | data : [...state.data, ...action.payload.data.value] 71 | } 72 | 73 | //INSERT NOTES 74 | case 'INSERT_NOTES_PENDING': 75 | return { 76 | ...state, 77 | isLoading : true, 78 | }; 79 | case 'INSERT_NOTES_REJECTED': 80 | return { 81 | ...state, 82 | isLoading : false, 83 | isError : true, 84 | }; 85 | case 'INSERT_NOTES_FULFILLED': 86 | return { 87 | ...state, 88 | isLoading : false, 89 | data : [ ...action.payload.data.value,...state.data] 90 | }; 91 | 92 | //UPDATE NOTES 93 | case 'UPDATE_NOTES_PENDING': 94 | return { 95 | ...state, 96 | isLoading : true, 97 | }; 98 | case 'UPDATE_NOTES_REJECTED': 99 | return { 100 | ...state, 101 | isLoading : false, 102 | isError : true, 103 | }; 104 | case 'UPDATE_NOTES_FULFILLED': 105 | for (let i = 0; i < tempData.data.length; i++) { 106 | if (tempData.data[i].id == action.payload.data.value[0].id) { 107 | tempData.data[i].title = action.payload.data.value[0].title; 108 | tempData.data[i].note = action.payload.data.value[0].note; 109 | tempData.data[i].category = action.payload.data.value[0].category; 110 | tempData.data[i].category_id = action.payload.data.value[0].category_id; 111 | tempData.data[i].created_at = action.payload.data.value[0].created_at; 112 | tempData.data[i].updated_at = action.payload.data.value[0].updated_at; 113 | } 114 | } 115 | return { 116 | ...state, 117 | isLoading : false, 118 | }; 119 | 120 | 121 | //DELETE NOTES 122 | case 'DELETE_NOTES_PENDING': 123 | return { 124 | ...state, 125 | isLoading : true, 126 | }; 127 | case 'DELETE_NOTES_REJECTED': 128 | return { 129 | ...state, 130 | isLoading : false, 131 | isError : true, 132 | }; 133 | case 'DELETE_NOTES_FULFILLED': 134 | return { 135 | ...state, 136 | isLoading : false, 137 | data : [...state.data.filter(data => data.id != action.payload.data.id)] 138 | }; 139 | 140 | 141 | /*===================================================* 142 | *=============== C A T E G O R I E S ===============* 143 | *===================================================*/ 144 | 145 | //GET CATEGORIES 146 | /**/ 147 | case 'GET_CATEGORIES_PENDING': // in case when loading get data 148 | return { 149 | ...state, 150 | isLoading : true 151 | } 152 | case 'GET_CATEGORIES_REJECTED': // in case error network/else 153 | return { 154 | ...state, 155 | isLoading : false, 156 | isError : true, 157 | } 158 | case 'GET_CATEGORIES_FULFILLED': // in case successfuly get data 159 | return { 160 | ...state, 161 | isLoading : false, 162 | isError : false, 163 | dataCategory: action.payload.data.value 164 | } 165 | 166 | 167 | //INSERT CATEGORIES 168 | case 'INSERT_CATEGORIES_PENDING': 169 | return { 170 | ...state, 171 | isLoading : true, 172 | }; 173 | case 'INSERT_CATEGORIES_REJECTED': 174 | return { 175 | ...state, 176 | isLoading : false, 177 | isError : true, 178 | }; 179 | case 'INSERT_CATEGORIES_FULFILLED': 180 | return { 181 | ...state, 182 | isLoading : false, 183 | dataCategory : [ ...action.payload.data.value, ...state.dataCategory] 184 | }; 185 | 186 | //DELETE CATEGORIES 187 | case 'DELETE_CATEGORIES_PENDING': 188 | return { 189 | ...state, 190 | isLoading : true, 191 | }; 192 | case 'DELETE_CATEGORIES_REJECTED': 193 | return { 194 | ...state, 195 | isLoading : false, 196 | isError : true, 197 | }; 198 | case 'DELETE_CATEGORIES_FULFILLED': 199 | return { 200 | ...state, 201 | isLoading : false, 202 | dataCategory : [...state.dataCategory.filter(data => data.id != action.payload.data.id)] 203 | }; 204 | 205 | default: 206 | return state; 207 | } 208 | } -------------------------------------------------------------------------------- /src/Public/redux/store.js: -------------------------------------------------------------------------------- 1 | // import create store and apply middleware for asynchronous 2 | import { createStore, applyMiddleware } from 'redux' 3 | import { createLogger } from 'redux-logger'; 4 | import promiseMiddleware from 'redux-promise-middleware'; 5 | 6 | // import reducer 7 | import rootReducer from './reducer'; 8 | 9 | // logging for debugging 10 | const logger = createLogger({}); 11 | 12 | 13 | // define store 14 | const store = createStore( 15 | rootReducer, 16 | applyMiddleware( 17 | logger, 18 | promiseMiddleware 19 | ) 20 | ); 21 | 22 | export default store; -------------------------------------------------------------------------------- /src/Screens/AddNote.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {View, TextInput, Text, Picker, StyleSheet, TouchableOpacity} from 'react-native'; 3 | 4 | // import connect to connect with redux store 5 | import { connect } from 'react-redux'; 6 | 7 | // import action 8 | import { insertNotes} from '../Public/redux/action/notes'; 9 | 10 | class AddNote extends Component{ 11 | 12 | constructor(props){ 13 | super(props); 14 | this.Categories = this.props.notes.dataCategory; 15 | this.state = { 16 | category_id: '', 17 | category: '', 18 | note:'', 19 | title:'' 20 | }; 21 | } 22 | 23 | setDefaultCategory = () => { 24 | this.setState({ category_id:this.Categories[0].id, category:this.Categories[0].name }) 25 | } 26 | 27 | updateCategory = (input) => { 28 | this.setState({ category:input }) 29 | {this.Categories.map((category) => {if(category.name == input) this.setState({ category_id:category.id }) 30 | })} 31 | } 32 | 33 | insertNote = () => { 34 | const {title, note, category, category_id} = this.state; 35 | if(title !== '' && category !== ''){ 36 | this.props.dispatch(insertNotes({title,note,category,category_id})) 37 | this.props.navigation.navigate('Home'); 38 | } 39 | } 40 | 41 | componentDidMount = () => { 42 | this.props.navigation.setParams({insertNote : this.insertNote}) 43 | this.setDefaultCategory(); 44 | } 45 | 46 | render() { 47 | return ( 48 | 49 | this.setState({title:text})} 51 | /> 52 | this.setState({note:text})} 55 | multiline={true} /> 56 | 57 | 58 | {this.Categories.map((category, key) => 59 | )} 60 | 61 | 62 | 63 | ); 64 | } 65 | } 66 | // map state to props to referring data in store 67 | const mapStateToProps = state => { 68 | return { 69 | notes: state.notes 70 | } 71 | } 72 | 73 | // connect with redux,first param is map and second is component 74 | export default connect(mapStateToProps)(AddNote) 75 | 76 | const styles = StyleSheet.create({ 77 | container: { 78 | padding: 10 79 | }, 80 | }); -------------------------------------------------------------------------------- /src/Screens/EditNote.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {View, TextInput, Text, Picker, StyleSheet, TouchableOpacity} from 'react-native'; 3 | 4 | // import connect to connect with redux store 5 | import { connect } from 'react-redux'; 6 | 7 | // import action 8 | import { updateNotes} from '../Public/redux/action/notes'; 9 | 10 | class AddNote extends Component{ 11 | 12 | constructor(props){ 13 | super(props); 14 | this.Categories = this.props.notes.dataCategory; 15 | this.state = { 16 | id:'', 17 | category_id: '', 18 | category: '', 19 | note:'', 20 | title:'' 21 | }; 22 | } 23 | 24 | setDefaultCategory = () => { 25 | console.log(this.props.navigation.state.params) 26 | this.setState({ 27 | id : this.props.navigation.state.params.id, 28 | category_id : this.props.navigation.state.params.category_id, 29 | category : this.props.navigation.state.params.category, 30 | note : this.props.navigation.state.params.note, 31 | title : this.props.navigation.state.params.title}) 32 | } 33 | 34 | updateCategory = (input) => { 35 | this.setState({ category:input }) 36 | {this.Categories.map((category) => { 37 | if(category.name == input) this.setState({ category_id:category.id }) 38 | })} 39 | } 40 | 41 | updateNote = () => { 42 | const {id, title, note, category, category_id} = this.state; 43 | if(title !== '' && category !== ''){ 44 | this.props.dispatch(updateNotes({id, title, note, category_id})) 45 | this.props.navigation.navigate('Home'); 46 | } 47 | } 48 | 49 | 50 | componentDidMount = () => { 51 | this.props.navigation.setParams({updateNote : this.updateNote}) 52 | this.setDefaultCategory(); 53 | } 54 | 55 | 56 | render() { 57 | return ( 58 | 59 | this.setState({title:text})} 61 | value={this.state.title} 62 | /> 63 | this.setState({note:text})} 66 | value={this.state.note} 67 | multiline={true} /> 68 | 69 | 70 | {this.Categories.map((category, key) => 71 | )} 72 | 73 | 74 | 75 | ); 76 | } 77 | } 78 | 79 | // map state to props to referring data in store 80 | const mapStateToProps = state => { 81 | return { 82 | notes: state.notes 83 | } 84 | } 85 | 86 | // connect with redux,first param is map and second is component 87 | export default connect(mapStateToProps)(AddNote) 88 | 89 | const styles = StyleSheet.create({ 90 | container: { 91 | padding: 10 92 | }, 93 | }); -------------------------------------------------------------------------------- /src/Screens/HomeScreen.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {Text, StyleSheet, FlatList, ActivityIndicator, View, TextInput, Modal} from 'react-native'; 3 | 4 | import _ from 'lodash'; 5 | 6 | // import connect to connect with redux store 7 | import { connect } from 'react-redux'; 8 | import { getNotes, getMoreNotes, getCategories } from '../Public/redux/action/notes'; 9 | 10 | import Card from '../Components/Card'; 11 | import Fab from '../Components/Fab'; 12 | import SortModal from '../Components/SortModal'; 13 | 14 | class HomeScreen extends Component{ 15 | 16 | constructor(props){ 17 | super(props); 18 | this.limitSearch = _.debounce(this.searchData, 800); 19 | this.state = { 20 | _ModalVisible:false, 21 | search:'', 22 | notes: [], 23 | }; 24 | } 25 | 26 | setModalVisibility = (bool) => { 27 | this.setState({ _ModalVisible: bool}); 28 | } 29 | fetchData = () => { 30 | let {sort, search, selectedCategory} = this.props.notes; 31 | this.props.dispatch(getNotes({sort, search, selectedCategory})); 32 | this.props.dispatch(getCategories()); 33 | } 34 | searchData = (search) =>{ 35 | let {sort, selectedCategory} = this.props.notes; 36 | this.props.dispatch(getNotes({sort, search, selectedCategory})); 37 | } 38 | loadMore = () =>{ 39 | let {sort, nextPage, search, selectedCategory} = this.props.notes; 40 | this.props.dispatch(getMoreNotes({sort, search, nextPage, selectedCategory})); 41 | } 42 | componentDidMount = () => { 43 | this.fetchData(); 44 | } 45 | componentWillUnmount(){ 46 | this.subs.forEach(sub => { 47 | sub.remove() 48 | }) 49 | } 50 | _onRefresh = () => { 51 | let selectedCategory = ""; 52 | let sort = ""; 53 | let search = ""; 54 | this.props.dispatch(getNotes({sort, search, selectedCategory})); 55 | this.props.dispatch(getCategories()); 56 | } 57 | _keyExtractor = (item, index) => item.id; 58 | 59 | render() { 60 | return ( 61 | 62 | 63 | 64 | this.limitSearch(search)} 70 | /> 71 | 72 | { 73 | this.props.notes.isLoading ? 74 | : 75 | this.props.notes.isError ? 76 | Error, please try again! 77 | :( 78 | } 86 | onEndReachedThreshold={0.1} 87 | onEndReached={({ distanceFromEnd }) => {this.loadMore()}} 88 | /> 89 | ) 90 | } 91 | 92 | this.changeModalVisibility(false)}> 93 | 94 | 95 | 96 | ); 97 | } 98 | } 99 | 100 | // map state to props to referring data in store 101 | const mapStateToProps = state => { 102 | return { 103 | notes: state.notes 104 | } 105 | } 106 | 107 | // connect with redux,first param is map and second is component 108 | export default connect(mapStateToProps)(HomeScreen) 109 | 110 | /*======================StyleSheet=======================*/ 111 | const styles = StyleSheet.create({ 112 | container: { 113 | paddingTop:0, 114 | justifyContent: 'center', 115 | backgroundColor: '#FAFEFF', 116 | alignItems:'center' 117 | }, 118 | activityIndicator: { 119 | paddingTop: 300, 120 | position : 'absolute', 121 | }, 122 | noteList: { 123 | marginTop: 70, 124 | paddingBottom:100 125 | }, 126 | input: { 127 | marginHorizontal: 20, 128 | height: 37, 129 | borderColor: '#999', 130 | borderWidth: 0, 131 | color:'#999' 132 | }, 133 | search: { 134 | padding:0, 135 | position:'absolute', 136 | marginTop:20, 137 | marginHorizontal:20, 138 | shadowColor: "#000", 139 | shadowOffset: { 140 | width: 0, 141 | height: 0, 142 | }, 143 | shadowOpacity: 0.6, 144 | elevation: 3, 145 | borderColor: '#999', 146 | borderWidth: 0, 147 | borderRadius:25, 148 | backgroundColor:'#FFF', 149 | opacity:0.9, 150 | width:304, 151 | top:0, 152 | zIndex:1 153 | } 154 | }); -------------------------------------------------------------------------------- /src/Screens/tempEdit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajhadi/React-Native-Note-App/b62abe901ed8a302f7b7be0c900d1dab3f7a6950/src/Screens/tempEdit.js -------------------------------------------------------------------------------- /test.css: -------------------------------------------------------------------------------- 1 | home{ 2 | color: #fafeff 3 | } --------------------------------------------------------------------------------