Skip to content

Commit 73ac428

Browse files
authored
Merge pull request #17 from daboigbae/release-candidate/2.0.0
Release Candidate 2.0.0
2 parents 1a70616 + e79a89e commit 73ac428

111 files changed

Lines changed: 17801 additions & 5657 deletions

File tree

Some content is hidden

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

.DS_Store

2 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This template creates an empty `react-native` project with every package needed
1010

1111
# 💻 Using Template
1212
Run this command to create a new project with the template
13-
`npx react-native init {YOUR_APP_NAME} --template https://github.com/daboigbae/react-native-template`
13+
`npx @react-native-community/cli init {YOUR_APP_NAME} --version 0.78.0 --template https://github.com/daboigbae/react-native-template`
1414

1515
** Make sure to replace {YOUR_APP_NAME} with the name you want to give your project
1616

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-template",
3-
"version": "0.0.1",
3+
"version": "3.0.1",
44
"description": "React native template",
55
"repository": "git@github.com:daboigbae/react-native-template",
66
"author": "gbae <ghigared@gmail.com>",

template/.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

template/.bundle/config

Lines changed: 2 additions & 0 deletions
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

Lines changed: 69 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,100 @@
11
module.exports = {
22
root: true,
3+
settings: {
4+
react: {
5+
version: "detect",
6+
},
7+
},
38
env: {
49
node: true,
510
browser: true,
611
es2021: true,
712
"react-native/react-native": true,
8-
"jest/globals": true
913
},
1014
extends: [
1115
"plugin:react/recommended",
1216
"prettier",
1317
"eslint:recommended",
14-
"plugin:jest/recommended",
15-
"plugin:@typescript-eslint/recommended" // Add TypeScript ESLint plugin
18+
"plugin:@typescript-eslint/recommended", // Add TypeScript ESLint plugin
1619
],
1720
parser: "@typescript-eslint/parser", // Specify the TypeScript parser
1821

1922
parserOptions: {
2023
ecmaFeatures: {
21-
jsx: true
24+
jsx: true,
2225
},
2326
ecmaVersion: "latest",
24-
sourceType: "module"
27+
sourceType: "module",
2528
},
2629

27-
plugins: ["react", "react-native", "detox", "@typescript-eslint"],
30+
plugins: [
31+
"react",
32+
"react-native",
33+
"@typescript-eslint",
34+
"simple-import-sort",
35+
],
2836
ignorePatterns: ["!.*", "dist", "node_modules"],
2937
rules: {
3038
indent: [
3139
"error",
3240
"tab",
3341
{
3442
SwitchCase: 1,
35-
ignoredNodes: ["ConditionalExpression"]
36-
}
43+
},
44+
], // handles proper indentation for switch cases
45+
"linebreak-style": ["error", "unix"], // to ensure all line breaks are consistent
46+
quotes: ["error", "double"], // to ensure all strings are consistently wrapped with double quotes
47+
semi: ["error", "always"], // to make sure that all statements are terminated with a semicolon
48+
"no-console": ["error"], // to reduce the number of console.log statements in the code
49+
"comma-dangle": [
50+
// ensuring that all arrays, objects, imports, and exports are consistent
51+
"error",
52+
{
53+
arrays: "always-multiline",
54+
objects: "always-multiline",
55+
imports: "always-multiline",
56+
exports: "always-multiline",
57+
functions: "never",
58+
},
59+
],
60+
"simple-import-sort/imports": "error", // to ensure that all imports are sorted alphabetically and grouped
61+
"@typescript-eslint/no-unused-vars": [
62+
"error",
63+
{
64+
vars: "all",
65+
args: "after-used",
66+
ignoreRestSiblings: true,
67+
},
3768
],
38-
"linebreak-style": ["error", "unix"],
39-
quotes: ["error", "double"],
40-
semi: ["error", "always"],
41-
"no-console": ["error"],
42-
"no-unused-vars": "off", // Disable the default rule for unused variables
43-
"@typescript-eslint/no-unused-vars": ["error", { vars: "all" }] // Enable TypeScript-specific rule for unused variables
44-
4569
},
46-
47-
settings: {
48-
react: {
49-
version: "detect"
50-
}
51-
}
70+
overrides: [
71+
{
72+
files: ["*.js", "*.jsx", "*.ts", "*.tsx"],
73+
rules: {
74+
"simple-import-sort/imports": [
75+
"error",
76+
{
77+
groups: [
78+
// Packages `react` related packages come first.
79+
["^react"],
80+
// Packages `@` related packages come second.
81+
["^@?\\w"],
82+
// Internal packages.
83+
[
84+
"^(@|@api|@assets|@components|@hooks|@navigation|@redux|@screens|@utils)(/.*|$)",
85+
],
86+
// Other relative imports. Put same-folder imports and `.` last.
87+
[
88+
"^\\.\\.(?!/?$)",
89+
"^\\.\\./?$",
90+
"^\\./(?=.*/)(?!/?$)",
91+
"^\\.(?!/?$)",
92+
"^\\./?$",
93+
],
94+
],
95+
},
96+
],
97+
},
98+
},
99+
],
52100
};

template/.flowconfig

Lines changed: 0 additions & 66 deletions
This file was deleted.

template/.gitignore

Lines changed: 51 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
!**/*.xcodeproj
2-
!**/*.pbxproj
3-
!**/*.xcworkspacedata
4-
!**/*.xcsettings
5-
!**/*.xcscheme
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
68
*.pbxuser
79
!default.pbxuser
810
*.mode1v3
@@ -18,119 +20,56 @@ DerivedData
1820
*.hmap
1921
*.ipa
2022
*.xcuserstate
21-
project.xcworkspace
2223
**/.xcode.env.local
23-
pods
24-
ios/build
25-
26-
# Gradle
27-
android/app/build/
28-
/packages/react-native-gradle-plugin/build/
29-
/packages/rn-tester/build
30-
/packages/rn-tester/android/app/.cxx/
31-
/packages/rn-tester/android/app/build/
32-
/packages/rn-tester/android/app/gradle/
33-
/packages/rn-tester/android/app/gradlew
34-
/packages/rn-tester/android/app/gradlew.bat
35-
/ReactAndroid/build/
36-
/ReactAndroid/.cxx/
37-
/ReactAndroid/gradle/
38-
/ReactAndroid/gradlew
39-
/ReactAndroid/gradlew.bat
40-
/ReactAndroid/hermes-engine/build/
41-
/ReactAndroid/hermes-engine/.cxx/
42-
/template/android/app/build/
43-
/template/android/build/
44-
45-
!**/GoogleService-Info.plist
46-
47-
# Buck
48-
.buckd
49-
buck-out
50-
/.lsp.buckd
51-
/.lsp-buck-out
52-
/ReactAndroid/src/main/jni/prebuilt/lib/
53-
/ReactAndroid/src/main/gen
54-
55-
# Android Studio
56-
.project
57-
.settings
58-
.classpath
59-
google-services.json
60-
61-
# Watchman
62-
.watchmanconfig
6324

64-
# Android
25+
# Android/IntelliJ
26+
#
27+
build/
6528
.idea
6629
.gradle
6730
local.properties
6831
*.iml
32+
*.hprof
33+
.cxx/
6934
*.keystore
70-
71-
72-
# Node
73-
node_modules
74-
*.log
75-
.nvm
76-
/bots/node_modules/
77-
package-lock.json
78-
79-
# OS X
80-
.DS_Store
81-
82-
# Test generated files
83-
/ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
84-
*.js.meta
85-
35+
!debug.keystore
36+
.kotlin/
37+
38+
# node.js
39+
#
40+
node_modules/
41+
npm-debug.log
42+
yarn-error.log
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+
**/fastlane/test_output
55+
56+
# Bundle artifact
57+
*.jsbundle
58+
59+
# Ruby / CocoaPods
60+
**/Pods/
61+
/vendor/bundle/
62+
63+
# Temporary files created by Metro to check the health of the file watcher
64+
.metro-health-check*
65+
66+
# testing
8667
/coverage
87-
/third-party
88-
89-
# Root dir shouldn't have Xcode project
90-
/*.xcodeproj
91-
92-
# ReactCommon subdir shouldn't have Xcode project
93-
/ReactCommon/**/*.xcodeproj
94-
95-
# Libs that shouldn't have Xcode project
96-
/Libraries/FBLazyVector/**/*.xcodeproj
97-
/Libraries/RCTRequired/**/*.xcodeproj
98-
/React/CoreModules/**/*.xcodeproj
99-
/React/FBReactNativeSpec/**/*.xcodeproj
100-
/packages/react-native-codegen/**/*.xcodeproj
101-
102-
# Ruby Gems (Bundler)
103-
/vendor
104-
/template/vendor
105-
106-
# iOS / CocoaPods
107-
/template/ios/build/
108-
/template/ios/Pods/
109-
/template/ios/Podfile.lock
110-
/packages/rn-tester/Gemfile.lock
111-
112-
# Ignore RNTester specific Pods, but keep the __offline_mirrors__ here.
113-
/packages/rn-tester/Pods/*
114-
!/packages/rn-tester/Pods/__offline_mirrors__
115-
116-
# react-native-codegen
117-
/React/FBReactNativeSpec/FBReactNativeSpec
118-
/packages/react-native-codegen/lib
119-
/ReactCommon/react/renderer/components/rncore/
120-
/packages/rn-tester/NativeModuleExample/ScreenshotManagerSpec*
121-
122-
# Additional SDKs
123-
/sdks/download
124-
/sdks/hermes
125-
/sdks/hermesc
126-
127-
# Visual studio
128-
.vscode
129-
.vs
130-
131-
# Android memory profiler files
132-
*.hprof
133-
134-
ios/GoogleService-Info.plist
13568

136-
.env
69+
# Yarn
70+
.yarn/*
71+
!.yarn/patches
72+
!.yarn/plugins
73+
!.yarn/releases
74+
!.yarn/sdks
75+
!.yarn/versions

0 commit comments

Comments
 (0)