Skip to content

Commit

Permalink
New version of mobile app with react-native
Browse files Browse the repository at this point in the history
  • Loading branch information
slava.p committed Jul 13, 2018
1 parent db40771 commit be45fa4
Show file tree
Hide file tree
Showing 1,017 changed files with 69,087 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mobile-app/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
"react-native", "react-native-dotenv"
],
"env": {
"development": {
"plugins": [
"transform-react-jsx-source",
"transform-class-properties"
]
}
}
}
8 changes: 8 additions & 0 deletions mobile-app/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
API_URL=URL
FACEBOOK_APP_ID=FACEBOOK_APP_ID
GOOGLE_ANDROID_APP_ID=GOOGLE_ANDROID_APP_ID
GOOGLE_IOS_APP_ID=GOOGLE_IOS_APP_ID
PRIVACY_URL=https://storeldiweuprod.blob.core.windows.net/static-resources/privacy.html
TERMS_URL=https://storeldiweuprod.blob.core.windows.net/static-resources/term.html
SENTRY_URL=SENTRY_URL
BASE_URL=https://api.app.worldcleanupday.com/api/v1
36 changes: 36 additions & 0 deletions mobile-app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"extends": "airbnb",
"plugins": ["react", "jsx-a11y", "import"],
"rules": {
"react/jsx-filename-extension": 0,
"no-mixed-operators": 0,
"arrow-body-style": "off",
"react/forbid-prop-types": ["off", { "forbid": ["any", "array", "object"] }],
"import/prefer-default-export": ["off"],
"react/no-array-index-key": ["warn"],
"react/jsx-wrap-multilines" : ["off"],
"react/require-default-props": ["off"],
"react/jsx-no-bind": "warn",
"class-methods-use-this": ["off"],
"max-len": ["error", 90],
"global-require": "off",
"consistent-return": "off",
"react/no-string-refs": "warn",
"import/no-unresolved": "warn",
"react/prop-types": "warn",
"no-plusplus": "warn",
"no-unused-expressions": "warn"
},
"settings": {
"import/core-modules": ["src/services"]
},
"env": {
"jest": true,
"es6": true,
"node": true
},
"globals": {
"navigator": true
},
"parser": "babel-eslint"
}
63 changes: 63 additions & 0 deletions mobile-app/.flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
.*/Libraries/react-native/ReactNative.js

; Additional create-react-native-app ignores

; Ignore duplicate module providers
.*/node_modules/fbemitter/lib/*

; Ignore misbehaving dev-dependencies
.*/node_modules/xdl/build/*
.*/node_modules/reqwest/tests/*

; Ignore missing expo-sdk dependencies (temporarily)
; https://github.com/expo/expo/issues/162
.*/node_modules/expo/src/*

; Ignore react-native-fbads dependency of the expo sdk
.*/node_modules/react-native-fbads/*

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow
flow/

[options]
module.system=haste

emoji=true

experimental.strict_type_args=true

munge_underscores=true

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'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

unsafe.enable_getters_and_setters=true

[version]
^0.42.0
55 changes: 55 additions & 0 deletions mobile-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# OSX
#
.DS_Store
# VS Code
.vscode/
# Xcode
#
Pods/
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
1 change: 1 addition & 0 deletions mobile-app/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit be45fa4

Please sign in to comment.