├── .watchmanconfig ├── android ├── .gradle │ ├── 5.5 │ │ ├── gc.properties │ │ ├── fileChanges │ │ │ └── last-build.bin │ │ ├── fileHashes │ │ │ ├── fileHashes.bin │ │ │ ├── fileHashes.lock │ │ │ └── resourceHashesCache.bin │ │ ├── javaCompile │ │ │ ├── jarAnalysis.bin │ │ │ ├── taskHistory.bin │ │ │ ├── classAnalysis.bin │ │ │ └── javaCompile.lock │ │ ├── fileContent │ │ │ └── fileContent.lock │ │ └── executionHistory │ │ │ ├── executionHistory.bin │ │ │ └── executionHistory.lock │ ├── vcs-1 │ │ └── gc.properties │ └── buildOutputCleanup │ │ ├── cache.properties │ │ ├── outputFiles.bin │ │ └── buildOutputCleanup.lock ├── app │ ├── debug.keystore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── 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 │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── zuzamen │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ └── AndroidManifest.xml │ │ └── debug │ │ │ └── AndroidManifest.xml │ ├── proguard-rules.pro │ ├── build_defs.bzl │ ├── _BUCK │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── settings.gradle ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── app.json ├── .eslintrc.js ├── babel.config.js ├── src ├── fonts │ └── galio.ttf ├── images │ ├── logo.png │ ├── dolbycanyon.avi │ ├── dolbycanyon.mp4 │ └── drawer_icon.png ├── components │ └── common │ │ ├── Spinner.js │ │ ├── CardSection.js │ │ ├── Card.js │ │ ├── Header.js │ │ ├── CusButton.js │ │ ├── Input.js │ │ ├── HeaderwithAccount.js │ │ └── MegaCard.js ├── navigationRef.js └── screens │ ├── Logout.js │ ├── SplashScreen.js │ ├── ConfirmSMS.js │ ├── WelcomeWhoWeAre.js │ ├── StartupDetails.js │ ├── WelcomeScreen.js │ ├── StartupList.js │ ├── InvestmentPage.js │ ├── HomePage.js │ ├── UserLogin.js │ └── UserRegistration.js ├── ios ├── zuzamen │ ├── Images.xcassets │ │ ├── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── AppDelegate.h │ ├── main.m │ ├── AppDelegate.m │ ├── Info.plist │ └── Base.lproj │ │ └── LaunchScreen.xib ├── zuzamenTests │ ├── Info.plist │ └── zuzamenTests.m ├── zuzamen-tvOSTests │ └── Info.plist ├── zuzamen-tvOS │ └── Info.plist ├── Podfile └── zuzamen.xcodeproj │ ├── xcshareddata │ └── xcschemes │ │ ├── zuzamen.xcscheme │ │ └── zuzamen-tvOS.xcscheme │ └── project.pbxproj ├── .buckconfig ├── .prettierrc.js ├── index.js ├── __tests__ └── App-test.js ├── metro.config.js ├── package.json ├── .flowconfig └── App.js /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /android/.gradle/5.5/gc.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/.gradle/5.5/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zuzamen", 3 | "displayName": "zuzamen" 4 | } -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Wed Mar 18 06:23:38 CDT 2020 2 | gradle.version=5.5 3 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /src/fonts/galio.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/src/fonts/galio.ttf -------------------------------------------------------------------------------- /src/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/src/images/logo.png -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/debug.keystore -------------------------------------------------------------------------------- /src/images/dolbycanyon.avi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/src/images/dolbycanyon.avi -------------------------------------------------------------------------------- /src/images/dolbycanyon.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/src/images/dolbycanyon.mp4 -------------------------------------------------------------------------------- /src/images/drawer_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/src/images/drawer_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | zuzamen 3 | 4 | -------------------------------------------------------------------------------- /ios/zuzamen/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | }; 7 | -------------------------------------------------------------------------------- /android/.gradle/5.5/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /android/.gradle/5.5/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /android/.gradle/5.5/javaCompile/jarAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/javaCompile/jarAnalysis.bin -------------------------------------------------------------------------------- /android/.gradle/5.5/javaCompile/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/javaCompile/taskHistory.bin -------------------------------------------------------------------------------- /android/.gradle/5.5/fileContent/fileContent.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/fileContent/fileContent.lock -------------------------------------------------------------------------------- /android/.gradle/5.5/javaCompile/classAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/javaCompile/classAnalysis.bin -------------------------------------------------------------------------------- /android/.gradle/5.5/javaCompile/javaCompile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/javaCompile/javaCompile.lock -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/.gradle/5.5/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/.gradle/5.5/executionHistory/executionHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/executionHistory/executionHistory.bin -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/.gradle/5.5/executionHistory/executionHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/5.5/executionHistory/executionHistory.lock -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Shnell_ReactNative/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'zuzamen' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 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 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /__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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/zuzamen/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.zuzamen; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "zuzamen"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ios/zuzamen/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/zuzamen/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 | -------------------------------------------------------------------------------- /src/components/common/Spinner.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View, ActivityIndicator } from 'react-native'; 3 | 4 | const Spinner = ({ size }) => { 5 | return ( 6 | 7 | 8 | 9 | ); 10 | }; 11 | 12 | const styles = { 13 | spinnerStyle: { 14 | flex: 1, 15 | justifyContent: 'center', 16 | alignItems: 'center' 17 | } 18 | }; 19 | 20 | export { Spinner }; -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/components/common/CardSection.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View } from 'react-native'; 3 | 4 | const CardSection = (props) => { 5 | return ( 6 | 7 | {props.children} 8 | 9 | ); 10 | }; 11 | 12 | const styles = { 13 | containerStyle: { 14 | borderBottomWidth: 1, 15 | padding: 5, 16 | backgroundColor: '#fff', 17 | justifyContent: 'flex-start', 18 | flexDirection: 'row', 19 | borderColor: '#ddd', 20 | position: 'relative' 21 | } 22 | }; 23 | 24 | export { CardSection }; -------------------------------------------------------------------------------- /src/components/common/Card.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View } from 'react-native'; 3 | 4 | const Card = (props) => { 5 | return ( 6 | 7 | {props.children} 8 | 9 | ); 10 | }; 11 | 12 | const styles = { 13 | containerStyle: { 14 | borderWidth: 1, 15 | borderRadius: 2, 16 | borderColor: '#ddd', 17 | borderBottomWidth: 0, 18 | shadowColor: '#000', 19 | shadowOffset: { width: 0, height: 2 }, 20 | shadowOpacity: 0.1, 21 | shadowRadius: 2, 22 | elevation: 1, 23 | marginLeft: 5, 24 | marginRight: 5, 25 | marginTop: 20, 26 | 27 | } 28 | }; 29 | 30 | export { Card }; -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/zuzamen/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/zuzamenTests/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/zuzamen-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 | -------------------------------------------------------------------------------- /src/navigationRef.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-unused-vars */ 2 | /* 3 | import * as React from 'react'; 4 | import {NavigationContainer} from '@react-navigation/native'; 5 | let navigator; 6 | 7 | export const setNavigator = nav => { 8 | navigator = nav; 9 | }; 10 | 11 | export const navigate = (routeName, params) => { 12 | navigator.dispatch(NavigationContainer.navigate({routeName, params})); 13 | }; 14 | */ 15 | 16 | 17 | 18 | import * as React from 'react'; 19 | export const navigationRef = React.createRef(); 20 | 21 | export function navigate(name, params) { 22 | console.log('navigateyo:', name); 23 | 24 | //console.log('navigationRef.current',navigationRef.current); 25 | 26 | if (navigationRef.current) { 27 | // Perform navigation if the app has mounted 28 | navigationRef.current.navigate(name, params); 29 | } 30 | 31 | //navigationRef.current.navigate(name, params); 32 | } -------------------------------------------------------------------------------- /src/components/common/Header.js: -------------------------------------------------------------------------------- 1 | // Import libraries for making a component 2 | import React from 'react'; 3 | import { Text, View } from 'react-native'; 4 | 5 | 6 | 7 | // Make a component 8 | const Header = (props) => { 9 | const { textStyle, viewStyle } = styles; 10 | 11 | return ( 12 | 13 | {props.headerText} 14 | 15 | ); 16 | }; 17 | 18 | const styles = { 19 | viewStyle: { 20 | backgroundColor: '#F8F8F8', 21 | justifyContent: 'center', 22 | alignItems: 'center', 23 | height: 60, 24 | paddingTop: 15, 25 | shadowColor: '#000', 26 | shadowOffset: { width: 0, height: 2 }, 27 | shadowOpacity: 0.2, 28 | elevation: 2, 29 | position: 'relative' 30 | }, 31 | textStyle: { 32 | fontSize: 20 33 | } 34 | }; 35 | 36 | // Make the component available to other parts of the app 37 | export { Header }; -------------------------------------------------------------------------------- /src/components/common/CusButton.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Text, TouchableOpacity } from 'react-native'; 3 | 4 | const CusButton = ({ onPress, children }) => { 5 | 6 | const { buttonStyle, textStyle } = styles; 7 | 8 | return ( 9 | 10 | 11 | {children} 12 | 13 | 14 | ); 15 | }; 16 | 17 | const styles = { 18 | textStyle: { 19 | alignSelf: 'center', 20 | color: '#007aff', 21 | fontSize: 16, 22 | fontWeight: '600', 23 | paddingTop: 10, 24 | paddingBottom: 10 25 | }, 26 | buttonStyle: { 27 | flex: 1, 28 | alignSelf: 'stretch', 29 | backgroundColor: '#fff', 30 | borderRadius: 5, 31 | borderWidth: 1, 32 | borderColor: '#007aff', 33 | marginLeft: 5, 34 | marginRight: 5 35 | } 36 | }; 37 | 38 | export { CusButton }; -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 14 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /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 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:3.4.2") 16 | 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /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 | android.useAndroidX=true 21 | android.enableJetifier=true 22 | 23 | MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore 24 | MYAPP_UPLOAD_KEY_ALIAS=my-key-alias 25 | MYAPP_UPLOAD_STORE_PASSWORD=lastman1 26 | MYAPP_UPLOAD_KEY_PASSWORD=lastman1 -------------------------------------------------------------------------------- /src/components/common/Input.js: -------------------------------------------------------------------------------- 1 | //https://github.com/StephenGrider/ReactNativeReduxCasts/blob/079-loggin-a-user-in/auth/src/components/common/Input.js 2 | 3 | import React from 'react'; 4 | import {TextInput, View, Text} from 'react-native'; 5 | 6 | const Input = ({label, value, onChangeText, placeholder, secureTextEntry}) => { 7 | const {inputStyle, labelStyle, containerStyle} = styles; 8 | 9 | return ( 10 | 11 | {label} 12 | 20 | 21 | ); 22 | }; 23 | 24 | const styles = { 25 | inputStyle: { 26 | color: '#000', 27 | paddingRight: 5, 28 | paddingLeft: 5, 29 | fontSize: 18, 30 | lineHeight: 23, 31 | flex: 2, 32 | }, 33 | labelStyle: { 34 | fontSize: 18, 35 | paddingLeft: 20, 36 | flex: 1, 37 | }, 38 | containerStyle: { 39 | height: 40, 40 | flex: 1, 41 | flexDirection: 'row', 42 | alignItems: 'center', 43 | }, 44 | }; 45 | 46 | export {Input}; 47 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zuzamen", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "@react-native-community/async-storage": "^1.8.1", 14 | "@react-native-community/masked-view": "^0.1.7", 15 | "@react-navigation/drawer": "^5.1.1", 16 | "@react-navigation/native": "^5.0.9", 17 | "@react-navigation/stack": "^5.1.0", 18 | "axios": "^0.19.2", 19 | "lodash": "^4.17.15", 20 | "react": "16.9.0", 21 | "react-native": "0.61.5", 22 | "react-native-check-box": "^2.1.7", 23 | "react-native-gesture-handler": "^1.6.0", 24 | "react-native-localize": "^1.3.3", 25 | "react-native-radio-buttons-group": "^1.0.7", 26 | "react-native-reanimated": "^1.7.0", 27 | "react-native-safe-area-context": "^0.7.3", 28 | "react-native-screens": "^2.2.0", 29 | "react-native-video": "^5.0.2", 30 | "react-redux": "^7.2.0" 31 | }, 32 | "devDependencies": { 33 | "@babel/core": "^7.6.2", 34 | "@babel/runtime": "^7.6.2", 35 | "@react-native-community/eslint-config": "^0.0.5", 36 | "babel-jest": "^24.9.0", 37 | "eslint": "^6.5.1", 38 | "jest": "^24.9.0", 39 | "metro-react-native-babel-preset": "^0.56.0", 40 | "react-test-renderer": "16.9.0" 41 | }, 42 | "jest": { 43 | "preset": "react-native" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /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.zuzamen", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.zuzamen", 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 | -------------------------------------------------------------------------------- /ios/zuzamen/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:@"zuzamen" 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/zuzamen-tvOS/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 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /ios/zuzamen/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | zuzamen 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 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/screens/Logout.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {Image, SafeAreaView, StatusBar, StyleSheet, Text, Button} from 'react-native'; 3 | import AsyncStorage from '@react-native-community/async-storage'; 4 | 5 | import * as RootNavigation from '../navigationRef'; 6 | 7 | export default class Logout extends Component { 8 | static navigationOptions = ({navigation}) => ({}); 9 | 10 | constructor(props) { 11 | super(props); 12 | this.state = { 13 | screenType: '', 14 | }; 15 | } 16 | 17 | componentDidMount() { 18 | console.log(this.props.navigation); 19 | this.props.navigation.closeDrawer() 20 | 21 | 22 | this.clearAsyncStorage().then(function() { 23 | console.log('Clear:cleared storage'); 24 | 25 | RootNavigation.navigate('WelcomeScreen'); 26 | 27 | }); 28 | 29 | //AsyncStorage.setItem('Token', null); 30 | //AsyncStorage.setItem('Islogin', 'No'); 31 | } 32 | 33 | clearAsyncStorage = async () => { 34 | AsyncStorage.clear(); 35 | 36 | //this.props.navigation.navigate('SplashScreen').bind(this); 37 | }; 38 | 39 | render() { 40 | return ( 41 | 42 |