@umang-thakkar/base-template 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +150 -0
  3. package/package.json +27 -0
  4. package/template/App.tsx +41 -0
  5. package/template/Gemfile +16 -0
  6. package/template/Gemfile.lock +124 -0
  7. package/template/Main.tsx +14 -0
  8. package/template/README.md +97 -0
  9. package/template/__tests__/App.test.tsx +13 -0
  10. package/template/_gitignore +75 -0
  11. package/template/android/app/build.gradle +119 -0
  12. package/template/android/app/debug.keystore +0 -0
  13. package/template/android/app/proguard-rules.pro +10 -0
  14. package/template/android/app/src/debug/AndroidManifest.xml +9 -0
  15. package/template/android/app/src/main/AndroidManifest.xml +26 -0
  16. package/template/android/app/src/main/java/com/basetemplate/MainActivity.kt +22 -0
  17. package/template/android/app/src/main/java/com/basetemplate/MainApplication.kt +38 -0
  18. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  19. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  20. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  21. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  22. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  23. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  24. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  25. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  26. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  27. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  28. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  29. package/template/android/app/src/main/res/values/strings.xml +3 -0
  30. package/template/android/app/src/main/res/values/styles.xml +9 -0
  31. package/template/android/build.gradle +21 -0
  32. package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  33. package/template/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  34. package/template/android/gradle.properties +44 -0
  35. package/template/android/gradlew +251 -0
  36. package/template/android/gradlew.bat +99 -0
  37. package/template/android/settings.gradle +6 -0
  38. package/template/app.json +4 -0
  39. package/template/babel.config.js +4 -0
  40. package/template/constants/AppConstants.tsx +1 -0
  41. package/template/constants/StoragePreferences.ts +94 -0
  42. package/template/index.js +9 -0
  43. package/template/ios/.xcode.env +11 -0
  44. package/template/ios/.xcode.env.local +1 -0
  45. package/template/ios/BaseTemplate/AppDelegate.swift +48 -0
  46. package/template/ios/BaseTemplate/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  47. package/template/ios/BaseTemplate/Images.xcassets/Contents.json +6 -0
  48. package/template/ios/BaseTemplate/Info.plist +53 -0
  49. package/template/ios/BaseTemplate/LaunchScreen.storyboard +47 -0
  50. package/template/ios/BaseTemplate/PrivacyInfo.xcprivacy +37 -0
  51. package/template/ios/BaseTemplate.xcodeproj/project.pbxproj +478 -0
  52. package/template/ios/BaseTemplate.xcodeproj/xcshareddata/xcschemes/BaseTemplate.xcscheme +88 -0
  53. package/template/ios/BaseTemplate.xcworkspace/contents.xcworkspacedata +10 -0
  54. package/template/ios/Podfile +35 -0
  55. package/template/jest.config.js +3 -0
  56. package/template/metro.config.js +11 -0
  57. package/template/package.json +54 -0
  58. package/template/src/api/AxiosActions.ts +37 -0
  59. package/template/src/api/AxiosClient.ts +17 -0
  60. package/template/src/api/queries.ts +22 -0
  61. package/template/src/api/service.ts +9 -0
  62. package/template/src/helper/colors.ts +24 -0
  63. package/template/src/helper/common-functions.ts +24 -0
  64. package/template/src/helper/font-family.ts +7 -0
  65. package/template/src/helper/navigation-service.ts +69 -0
  66. package/template/src/helper/typography.ts +91 -0
  67. package/template/src/helper/utility-functions.ts +85 -0
  68. package/template/src/navigation/AppStack.tsx +32 -0
  69. package/template/src/navigation/AppStackParams.ts +4 -0
  70. package/template/src/navigation/screens.ts +14 -0
  71. package/template/src/redux/action.ts +0 -0
  72. package/template/src/redux/slice.ts +21 -0
  73. package/template/src/redux/store.ts +16 -0
  74. package/template/src/redux/types.d.ts +1 -0
  75. package/template/src/screens/HomeScreen.tsx +21 -0
  76. package/template/src/screens/SplashScreen.tsx +18 -0
  77. package/template/tsconfig.json +5 -0
  78. package/template/yarn.lock +6935 -0
  79. package/template.config.js +12 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 react-native-community
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,150 @@
1
+ # 🚀 React Native Base Template
2
+
3
+ A React Native boilerplate to kickstart your mobile app development faster, with preconfigured essentials like:
4
+
5
+ - 🔁 Redux Toolkit for scalable state management
6
+ - 📍 React Navigation for robust navigation
7
+ - 🔗 React Query for powerful API data fetching and caching
8
+ - 🗂️ Scalable folder structure
9
+ - 🧰 Common utility functions
10
+ - 📦 Pre-installed useful dependencies
11
+ - ⚙️ Optimized project setup for faster development
12
+
13
+ ## 📦 Features
14
+
15
+ - ✅ Redux Toolkit with example slices and hooks
16
+ - ✅ React Navigation with Stack Navigator setup
17
+ - ✅ React Query for API management (see `src/api/queries.ts`)
18
+ - ✅ Organized folder structure for features, helpers, navigation, etc.
19
+ - ✅ Useful helpers: debouncers, formatters, navigation service
20
+ - ✅ TypeScript support
21
+ - ✅ Common third-party libraries installed
22
+
23
+ ## 📁 Folder Structure
24
+
25
+ ```
26
+ template/
27
+ ├── App.tsx # Entry point
28
+ ├── Main.tsx # Main app logic
29
+ ├── app.json # App config
30
+ ├── babel.config.js # Babel config
31
+ ├── constants/ # App constants
32
+ │ ├── AppConstants.tsx
33
+ │ └── StoragePreferences.ts
34
+ ├── __tests__/ # Test files
35
+ │ └── App.test.tsx
36
+ ├── android/ # Android project files
37
+ ├── ios/ # iOS project files
38
+ ├── src/
39
+ │ ├── api/ # API clients, actions, and React Query hooks
40
+ │ │ ├── AxiosActions.ts
41
+ │ │ ├── AxiosClient.ts
42
+ │ │ ├── queries.ts # React Query hooks and API calls
43
+ │ │ └── service.ts
44
+ │ ├── assets/ # Fonts, images, svg
45
+ │ │ ├── fonts/
46
+ │ │ ├── images/
47
+ │ │ └── svg/
48
+ │ ├── helper/ # Utility and helper functions
49
+ │ │ ├── colors.ts
50
+ │ │ ├── common-functions.ts
51
+ │ │ ├── font-family.ts
52
+ │ │ ├── navigation-service.ts
53
+ │ │ ├── typography.ts
54
+ │ │ └── utility-functions.ts
55
+ │ ├── hooks/ # Custom hooks
56
+ │ ├── navigation/ # Navigation setup
57
+ │ │ ├── AppStack.tsx
58
+ │ │ ├── AppStackParams.ts
59
+ │ │ └── screens.ts
60
+ │ ├── redux/ # Redux store, slices, types
61
+ │ │ ├── action.ts
62
+ │ │ ├── slice.ts
63
+ │ │ ├── store.ts
64
+ │ │ └── types.d.ts
65
+ │ ├── screens/ # App screens
66
+ │ │ ├── HomeScreen.tsx
67
+ │ │ └── SplashScreen.tsx
68
+ ├── vendor/ # Vendor files
69
+ │ └── bundle/
70
+ ├── package.json # Project dependencies
71
+ ├── tsconfig.json # TypeScript config
72
+ └── README.md # Template README
73
+ ```
74
+
75
+ ## 🚀 Getting Started
76
+
77
+ 1. Clone the repo and navigate to the project folder.
78
+ 2. Install dependencies:
79
+ ```sh
80
+ npm install
81
+ ```
82
+ 3. Start Metro server:
83
+ ```sh
84
+ npx react-native start
85
+ ```
86
+ 4. Run the app:
87
+ ```sh
88
+ # For Android
89
+ npx react-native run-android
90
+
91
+ # For iOS
92
+ npx react-native run-ios
93
+ ```
94
+
95
+ > **Note**: With React Native 0.60+, iOS dependencies are automatically linked using autolinking. Manual pod installation is no longer required for most cases.
96
+
97
+ ## 🧠 Usage Instructions
98
+
99
+ ### 📌 Redux Toolkit
100
+
101
+ - Store is configured in `src/redux/store.ts`.
102
+ - Example usage:
103
+ ```tsx
104
+ import { useAppSelector, useAppDispatch } from "../redux/store";
105
+ import { increment } from "../redux/slice";
106
+ const count = useAppSelector((state) => state.counter.value);
107
+ const dispatch = useAppDispatch();
108
+ <Button title="Increment" onPress={() => dispatch(increment())} />;
109
+ ```
110
+
111
+ ### 🌐 Navigation
112
+
113
+ - Navigation setup in `src/navigation/`.
114
+ - Register screens in `AppStack.tsx`.
115
+
116
+ ### 🔗 React Query
117
+
118
+ - API calls and React Query hooks are in `src/api/queries.ts`.
119
+ - Example usage:
120
+ ```ts
121
+ import { useQuery } from 'react-query';
122
+ import { fetchData } from '../api/queries';
123
+ const { data, isLoading } = useQuery('data', fetchData);
124
+ ```
125
+
126
+ ### 🧰 Utility Functions
127
+
128
+ - Use helpers from `src/helper/`:
129
+ ```ts
130
+ import { formatDate } from "../helper/common-functions";
131
+ ```
132
+
133
+ ## 🪄 Customization Tips
134
+
135
+ - Add new slices under `src/redux/`
136
+ - Add new API services under `src/api/`
137
+ - Organize screens under `src/screens/`
138
+ - Keep shared components in a `components/` folder (add as needed)
139
+
140
+ ## 🤝 Contributing
141
+
142
+ Feel free to fork and customize this template! Pull requests welcome.
143
+
144
+ ## 👨‍💻 Author
145
+
146
+ Created with ❤️ by **[Umang Thakkar](https://github.com/Umang2809)**
147
+
148
+ ## 📜 License
149
+
150
+ MIT © [Umang Thakkar](https://github.com/Umang2809)
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@umang-thakkar/base-template",
3
+ "version": "1.0.0",
4
+ "description": "The template for react native to setup redux and other neccesary boilerplate codes",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "scripts": {
10
+ "test": "jest"
11
+ },
12
+ "type": "commonjs",
13
+ "files": [
14
+ "template/*",
15
+ "template.config.js"
16
+ ],
17
+ "dependencies": {},
18
+ "devDependencies": {
19
+ "jest": "^29.7.0",
20
+ "semver": "^7.6.3"
21
+ },
22
+ "homepage": "https://github.com/Umang2809/react-native-template",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/Umang2809/react-native-template.git"
26
+ }
27
+ }
@@ -0,0 +1,41 @@
1
+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
2
+ import { StyleSheet, useColorScheme, View } from 'react-native';
3
+ import {
4
+ SafeAreaProvider,
5
+ useSafeAreaInsets,
6
+ } from 'react-native-safe-area-context';
7
+ import { Provider } from 'react-redux';
8
+ import store from './src/redux/store';
9
+ import Main from './Main';
10
+ const queryClient = new QueryClient()
11
+ function App() {
12
+ const isDarkMode = useColorScheme() === 'dark';
13
+
14
+ return (
15
+ <QueryClientProvider client={queryClient}>
16
+ <Provider store={store}>
17
+ <SafeAreaProvider>
18
+ <Main />
19
+ </SafeAreaProvider>
20
+ </Provider>
21
+ </QueryClientProvider>
22
+ );
23
+ }
24
+
25
+ function AppContent() {
26
+ const safeAreaInsets = useSafeAreaInsets();
27
+
28
+ return (
29
+ <View style={styles.container}>
30
+
31
+ </View>
32
+ );
33
+ }
34
+
35
+ const styles = StyleSheet.create({
36
+ container: {
37
+ flex: 1,
38
+ },
39
+ });
40
+
41
+ export default App;
@@ -0,0 +1,16 @@
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.6.10"
5
+
6
+ # Exclude problematic versions of cocoapods and activesupport that causes build failures.
7
+ gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8
+ gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9
+ gem 'xcodeproj', '< 1.26.0'
10
+ gem 'concurrent-ruby', '< 1.3.4'
11
+
12
+ # Ruby 3.4.0 has removed some libraries from the standard library.
13
+ gem 'bigdecimal'
14
+ gem 'logger'
15
+ gem 'benchmark'
16
+ gem 'mutex_m'
@@ -0,0 +1,124 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ CFPropertyList (3.0.7)
5
+ base64
6
+ nkf
7
+ rexml
8
+ activesupport (7.2.2.2)
9
+ base64
10
+ benchmark (>= 0.3)
11
+ bigdecimal
12
+ concurrent-ruby (~> 1.0, >= 1.3.1)
13
+ connection_pool (>= 2.2.5)
14
+ drb
15
+ i18n (>= 1.6, < 2)
16
+ logger (>= 1.4.2)
17
+ minitest (>= 5.1)
18
+ securerandom (>= 0.3)
19
+ tzinfo (~> 2.0, >= 2.0.5)
20
+ addressable (2.8.7)
21
+ public_suffix (>= 2.0.2, < 7.0)
22
+ algoliasearch (1.27.5)
23
+ httpclient (~> 2.8, >= 2.8.3)
24
+ json (>= 1.5.1)
25
+ atomos (0.1.3)
26
+ base64 (0.3.0)
27
+ benchmark (0.4.1)
28
+ bigdecimal (3.2.2)
29
+ claide (1.1.0)
30
+ cocoapods (1.15.2)
31
+ addressable (~> 2.8)
32
+ claide (>= 1.0.2, < 2.0)
33
+ cocoapods-core (= 1.15.2)
34
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
35
+ cocoapods-downloader (>= 2.1, < 3.0)
36
+ cocoapods-plugins (>= 1.0.0, < 2.0)
37
+ cocoapods-search (>= 1.0.0, < 2.0)
38
+ cocoapods-trunk (>= 1.6.0, < 2.0)
39
+ cocoapods-try (>= 1.1.0, < 2.0)
40
+ colored2 (~> 3.1)
41
+ escape (~> 0.0.4)
42
+ fourflusher (>= 2.3.0, < 3.0)
43
+ gh_inspector (~> 1.0)
44
+ molinillo (~> 0.8.0)
45
+ nap (~> 1.0)
46
+ ruby-macho (>= 2.3.0, < 3.0)
47
+ xcodeproj (>= 1.23.0, < 2.0)
48
+ cocoapods-core (1.15.2)
49
+ activesupport (>= 5.0, < 8)
50
+ addressable (~> 2.8)
51
+ algoliasearch (~> 1.0)
52
+ concurrent-ruby (~> 1.1)
53
+ fuzzy_match (~> 2.0.4)
54
+ nap (~> 1.0)
55
+ netrc (~> 0.11)
56
+ public_suffix (~> 4.0)
57
+ typhoeus (~> 1.0)
58
+ cocoapods-deintegrate (1.0.5)
59
+ cocoapods-downloader (2.1)
60
+ cocoapods-plugins (1.0.0)
61
+ nap
62
+ cocoapods-search (1.0.1)
63
+ cocoapods-trunk (1.6.0)
64
+ nap (>= 0.8, < 2.0)
65
+ netrc (~> 0.11)
66
+ cocoapods-try (1.2.0)
67
+ colored2 (3.1.2)
68
+ concurrent-ruby (1.3.3)
69
+ connection_pool (2.5.3)
70
+ drb (2.2.3)
71
+ escape (0.0.4)
72
+ ethon (0.16.0)
73
+ ffi (>= 1.15.0)
74
+ ffi (1.17.2)
75
+ fourflusher (2.3.1)
76
+ fuzzy_match (2.0.4)
77
+ gh_inspector (1.1.3)
78
+ httpclient (2.9.0)
79
+ mutex_m
80
+ i18n (1.14.7)
81
+ concurrent-ruby (~> 1.0)
82
+ json (2.13.2)
83
+ logger (1.7.0)
84
+ minitest (5.25.5)
85
+ molinillo (0.8.0)
86
+ mutex_m (0.3.0)
87
+ nanaimo (0.3.0)
88
+ nap (1.1.0)
89
+ netrc (0.11.0)
90
+ nkf (0.2.0)
91
+ public_suffix (4.0.7)
92
+ rexml (3.4.1)
93
+ ruby-macho (2.5.1)
94
+ securerandom (0.4.1)
95
+ typhoeus (1.4.1)
96
+ ethon (>= 0.9.0)
97
+ tzinfo (2.0.6)
98
+ concurrent-ruby (~> 1.0)
99
+ xcodeproj (1.25.1)
100
+ CFPropertyList (>= 2.3.3, < 4.0)
101
+ atomos (~> 0.1.3)
102
+ claide (>= 1.0.2, < 2.0)
103
+ colored2 (~> 3.1)
104
+ nanaimo (~> 0.3.0)
105
+ rexml (>= 3.3.6, < 4.0)
106
+
107
+ PLATFORMS
108
+ ruby
109
+
110
+ DEPENDENCIES
111
+ activesupport (>= 6.1.7.5, != 7.1.0)
112
+ benchmark
113
+ bigdecimal
114
+ cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
115
+ concurrent-ruby (< 1.3.4)
116
+ logger
117
+ mutex_m
118
+ xcodeproj (< 1.26.0)
119
+
120
+ RUBY VERSION
121
+ ruby 3.4.5p51
122
+
123
+ BUNDLED WITH
124
+ 2.7.1
@@ -0,0 +1,14 @@
1
+ import { NavigationContainer } from '@react-navigation/native';
2
+ import React from 'react';
3
+ import AppStack from './src/navigation/AppStack';
4
+
5
+
6
+ const Main = () => {
7
+ return (
8
+ <NavigationContainer>
9
+ <AppStack />
10
+ </NavigationContainer>
11
+ )
12
+ }
13
+
14
+ export default Main
@@ -0,0 +1,97 @@
1
+ This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
2
+
3
+ # Getting Started
4
+
5
+ > **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.
6
+
7
+ ## Step 1: Start Metro
8
+
9
+ First, you will need to run **Metro**, the JavaScript build tool for React Native.
10
+
11
+ To start the Metro dev server, run the following command from the root of your React Native project:
12
+
13
+ ```sh
14
+ # Using npm
15
+ npm start
16
+
17
+ # OR using Yarn
18
+ yarn start
19
+ ```
20
+
21
+ ## Step 2: Build and run your app
22
+
23
+ With Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:
24
+
25
+ ### Android
26
+
27
+ ```sh
28
+ # Using npm
29
+ npm run android
30
+
31
+ # OR using Yarn
32
+ yarn android
33
+ ```
34
+
35
+ ### iOS
36
+
37
+ For iOS, remember to install CocoaPods dependencies (this only needs to be run on first clone or after updating native deps).
38
+
39
+ The first time you create a new project, run the Ruby bundler to install CocoaPods itself:
40
+
41
+ ```sh
42
+ bundle install
43
+ ```
44
+
45
+ Then, and every time you update your native dependencies, run:
46
+
47
+ ```sh
48
+ bundle exec pod install
49
+ ```
50
+
51
+ For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).
52
+
53
+ ```sh
54
+ # Using npm
55
+ npm run ios
56
+
57
+ # OR using Yarn
58
+ yarn ios
59
+ ```
60
+
61
+ If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.
62
+
63
+ This is one way to run your app — you can also build it directly from Android Studio or Xcode.
64
+
65
+ ## Step 3: Modify your app
66
+
67
+ Now that you have successfully run the app, let's make changes!
68
+
69
+ Open `App.tsx` in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by [Fast Refresh](https://reactnative.dev/docs/fast-refresh).
70
+
71
+ When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:
72
+
73
+ - **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Dev Menu**, accessed via <kbd>Ctrl</kbd> + <kbd>M</kbd> (Windows/Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (macOS).
74
+ - **iOS**: Press <kbd>R</kbd> in iOS Simulator.
75
+
76
+ ## Congratulations! :tada:
77
+
78
+ You've successfully run and modified your React Native App. :partying_face:
79
+
80
+ ### Now what?
81
+
82
+ - If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
83
+ - If you're curious to learn more about React Native, check out the [docs](https://reactnative.dev/docs/getting-started).
84
+
85
+ # Troubleshooting
86
+
87
+ If you're having issues getting the above steps to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
88
+
89
+ # Learn More
90
+
91
+ To learn more about React Native, take a look at the following resources:
92
+
93
+ - [React Native Website](https://reactnative.dev) - learn more about React Native.
94
+ - [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
95
+ - [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
96
+ - [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
97
+ - [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @format
3
+ */
4
+
5
+ import React from 'react';
6
+ import ReactTestRenderer from 'react-test-renderer';
7
+ import App from '../App';
8
+
9
+ test('renders correctly', async () => {
10
+ await ReactTestRenderer.act(() => {
11
+ ReactTestRenderer.create(<App />);
12
+ });
13
+ });
@@ -0,0 +1,75 @@
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
+ **/.xcode.env.local
24
+
25
+ # Android/IntelliJ
26
+ #
27
+ build/
28
+ .idea
29
+ .gradle
30
+ local.properties
31
+ *.iml
32
+ *.hprof
33
+ .cxx/
34
+ *.keystore
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
67
+ /coverage
68
+
69
+ # Yarn
70
+ .yarn/*
71
+ !.yarn/patches
72
+ !.yarn/plugins
73
+ !.yarn/releases
74
+ !.yarn/sdks
75
+ !.yarn/versions