Skip to content

Commit 582e989

Browse files
author
Dmytro Velychko
committed
init
0 parents  commit 582e989

File tree

121 files changed

+4240
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+4240
-0
lines changed

README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# React Native Codempire Tempalte 🇺🇦
2+
3+
[![Email](https://img.shields.io/badge/made_by-CODEMPIRE-green.svg?style=flat)](mailto:[email protected])
4+
5+
> React Native template for a quick start based on our [**Code Style**](https://github.com/codempireio/code-style)
6+
7+
## Features
8+
9+
- Quick starting via [React Native CLI](https://github.com/react-native-community/cli)
10+
- Folder structure skeleton with our code-style
11+
- Most usable libriaries included
12+
- Useful npm scripts
13+
14+
## Usage
15+
16+
```sh
17+
npx react-native init MyApp --template https://github.com/codempireio/react-native-codempire-template.git
18+
```
19+
20+
### Folder Structure Description
21+
22+
- `screens` - folder that keeps all phone screens with its components, types, styles, redux connection or services;
23+
- `navigation` - navigation stacks created with screens into application rouring
24+
- `components` - contain components that used on different screens structured with atomic method: atoms - the smallest, molecules - using atoms and custom logic, organisms - using atoms, molecules and custom logic
25+
- `services` - classes that used on different screens and components, separated into 3 folders: helpers - default functions (date, currency, math, etc), hooks - for state enhancement, store - redux
26+
- `constants` - shared variables placed into 1 folder
27+
- `theme` - shared styles (font sizes, colors, animations, etc)
28+
- `typings` - shared types
29+
- `assets` - contains icons, fonts, images, animation and other not programmable project resourcdes
30+
31+
### ToDo List
32+
33+
- [ ] Pre-commit hook
34+
- [ ] Storybook
35+
- [ ] Feature (Social Media Login)
36+
- [ ] CI/CD AppCenter (.env)
37+
38+
## Contact Us 😏
39+
40+
You can always contact us via [email protected]. We are open to any inquiries regarding our guides, libraries, and controls, new open-source projects and other ways of contributing to the community. If you have used our stuff in your project we would be extremely happy if you write to us your feedback and let us know about it!
41+
42+
Copyright © Codempire

package.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "react-native-codempire-template",
3+
"version": "0.0.1",
4+
"description": "React Native Template by Codempire",
5+
"scripts": {
6+
"test": "exit 0"
7+
},
8+
"files": [
9+
"template",
10+
"template.config.js",
11+
"script.js"
12+
],
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/codempireio/react-native-codempire-template.git"
16+
},
17+
"keywords": [
18+
"react-native",
19+
"typescript",
20+
"template",
21+
"boilerplate"
22+
],
23+
"author": "[email protected]",
24+
"license": "MIT"
25+
}

template.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
placeholderName: 'CodempireTemplate',
3+
templateDir: './template'
4+
}

template/Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4+
ruby '2.7.5'
5+
6+
gem 'cocoapods', '~> 1.11', '>= 1.11.2'

template/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# CodempireTemplate
2+
3+
> Thank you for a using our template ❤️ if you have any ideas [welcome](https://github.com/codempireio/react-native-codempire-template/issues) 😊

template/_buckconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
[android]
3+
target = Google Inc.:Google APIs:23
4+
5+
[maven_repositories]
6+
central = https://repo1.maven.org/maven2

template/_bundle/config

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BUNDLE_PATH: "vendor/bundle"
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1

template/_eslintrc.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@react-native-community', 'prettier'],
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint', 'import'],
6+
parserOptions: {
7+
project: './tsconfig.json',
8+
tsconfigRootDir: './',
9+
},
10+
ignorePatterns: ['.eslintrc.js'],
11+
settings: {
12+
'import/parsers': {
13+
'@typescript-eslint/parser': ['.ts', '.tsx'],
14+
},
15+
'import/resolver': {
16+
typescript: {
17+
alwaysTryTypes: true,
18+
project: './tsconfig.json',
19+
},
20+
},
21+
},
22+
rules: {
23+
'import/no-unresolved': 'error',
24+
},
25+
};

template/_gitignore

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
ios/.xcode.env.local
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
*.hprof
33+
34+
# node.js
35+
#
36+
node_modules/
37+
npm-debug.log
38+
yarn-error.log
39+
40+
# BUCK
41+
buck-out/
42+
\.buckd/
43+
*.keystore
44+
!debug.keystore
45+
46+
# fastlane
47+
#
48+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
49+
# screenshots whenever they are needed.
50+
# For more information about the recommended setup visit:
51+
# https://docs.fastlane.tools/best-practices/source-control/
52+
53+
**/fastlane/report.xml
54+
**/fastlane/Preview.html
55+
**/fastlane/screenshots
56+
**/fastlane/test_output
57+
58+
# Bundle artifact
59+
*.jsbundle
60+
61+
# Ruby / CocoaPods
62+
/ios/Pods/
63+
/vendor/bundle/

template/_prettierrc.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
arrowParens: 'always',
3+
bracketSameLine: true,
4+
bracketSpacing: true,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
tabWidth: 2,
8+
printWidth: 100,
9+
jsxSingleQuote: false,
10+
semi: true,
11+
useTabs: false,
12+
endOfLine: "lf",
13+
};

template/_ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.5

template/_watchmanconfig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

template/android/app/_BUCK

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.codempiretemplate",
39+
)
40+
41+
android_resource(
42+
name = "res",
43+
package = "com.codempiretemplate",
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+
)

0 commit comments

Comments
 (0)