react-native-boiler-plate-vijay 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 (126) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +84 -0
  3. package/package.json +32 -0
  4. package/template/.husky/pre-commit +1 -0
  5. package/template/Gemfile +16 -0
  6. package/template/README.md +272 -0
  7. package/template/__tests__/App.test.tsx +13 -0
  8. package/template/_eslintrc.js +4 -0
  9. package/template/_gitignore +71 -0
  10. package/template/_prettierrc.js +7 -0
  11. package/template/_watchmanconfig +1 -0
  12. package/template/android/app/build.gradle +119 -0
  13. package/template/android/app/debug.keystore +0 -0
  14. package/template/android/app/proguard-rules.pro +10 -0
  15. package/template/android/app/src/main/AndroidManifest.xml +28 -0
  16. package/template/android/app/src/main/assets/custom/index.ts +12 -0
  17. package/template/android/app/src/main/assets/fonts/Poppins-Black.ttf +0 -0
  18. package/template/android/app/src/main/assets/fonts/Poppins-Bold.ttf +0 -0
  19. package/template/android/app/src/main/assets/fonts/Poppins-ExtraBold.ttf +0 -0
  20. package/template/android/app/src/main/assets/fonts/Poppins-ExtraLight.ttf +0 -0
  21. package/template/android/app/src/main/assets/fonts/Poppins-Italic.ttf +0 -0
  22. package/template/android/app/src/main/assets/fonts/Poppins-Light.ttf +0 -0
  23. package/template/android/app/src/main/assets/fonts/Poppins-Medium.ttf +0 -0
  24. package/template/android/app/src/main/assets/fonts/Poppins-Regular.ttf +0 -0
  25. package/template/android/app/src/main/assets/fonts/Poppins-SemiBold.ttf +0 -0
  26. package/template/android/app/src/main/assets/fonts/Poppins-Thin.ttf +0 -0
  27. package/template/android/app/src/main/java/com/helloworld/MainActivity.kt +29 -0
  28. package/template/android/app/src/main/java/com/helloworld/MainApplication.kt +27 -0
  29. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  30. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  31. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  32. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  33. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  34. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  35. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  36. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  37. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  38. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  39. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  40. package/template/android/app/src/main/res/values/strings.xml +3 -0
  41. package/template/android/app/src/main/res/values/styles.xml +9 -0
  42. package/template/android/build.gradle +31 -0
  43. package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  44. package/template/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  45. package/template/android/gradle.properties +44 -0
  46. package/template/android/gradlew +251 -0
  47. package/template/android/gradlew.bat +99 -0
  48. package/template/android/settings.gradle +6 -0
  49. package/template/app.json +4 -0
  50. package/template/babel.config.js +38 -0
  51. package/template/index.js +9 -0
  52. package/template/ios/.xcode.env +11 -0
  53. package/template/ios/HelloWorld/AppDelegate.swift +48 -0
  54. package/template/ios/HelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  55. package/template/ios/HelloWorld/Images.xcassets/Contents.json +6 -0
  56. package/template/ios/HelloWorld/Info.plist +73 -0
  57. package/template/ios/HelloWorld/LaunchScreen.storyboard +47 -0
  58. package/template/ios/HelloWorld/PrivacyInfo.xcprivacy +45 -0
  59. package/template/ios/HelloWorld.xcodeproj/project.pbxproj +547 -0
  60. package/template/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme +88 -0
  61. package/template/ios/HelloWorld.xcworkspace/contents.xcworkspacedata +10 -0
  62. package/template/ios/Podfile +34 -0
  63. package/template/jest.config.js +3 -0
  64. package/template/metro.config.js +24 -0
  65. package/template/package.json +83 -0
  66. package/template/react-native.config.js +3 -0
  67. package/template/src/api/axiosInstance.ts +75 -0
  68. package/template/src/api/index.ts +13 -0
  69. package/template/src/appRedux/index.ts +32 -0
  70. package/template/src/appRedux/modules/LoaderSlice.ts +23 -0
  71. package/template/src/appRedux/modules/ProfileSlice.ts +56 -0
  72. package/template/src/assets/fonts/Poppins-Black.ttf +0 -0
  73. package/template/src/assets/fonts/Poppins-Bold.ttf +0 -0
  74. package/template/src/assets/fonts/Poppins-ExtraBold.ttf +0 -0
  75. package/template/src/assets/fonts/Poppins-ExtraLight.ttf +0 -0
  76. package/template/src/assets/fonts/Poppins-Italic.ttf +0 -0
  77. package/template/src/assets/fonts/Poppins-Light.ttf +0 -0
  78. package/template/src/assets/fonts/Poppins-Medium.ttf +0 -0
  79. package/template/src/assets/fonts/Poppins-Regular.ttf +0 -0
  80. package/template/src/assets/fonts/Poppins-SemiBold.ttf +0 -0
  81. package/template/src/assets/fonts/Poppins-Thin.ttf +0 -0
  82. package/template/src/assets/fonts/index.ts +12 -0
  83. package/template/src/assets/images/IC_Home_Active.svg +3 -0
  84. package/template/src/assets/images/IC_Home_UnActive.svg +4 -0
  85. package/template/src/assets/images/IC_Setting_Active.svg +3 -0
  86. package/template/src/assets/images/IC_Setting_UnActive.svg +3 -0
  87. package/template/src/assets/images/index.ts +11 -0
  88. package/template/src/assets/index.ts +1 -0
  89. package/template/src/common/asyncServices.ts +41 -0
  90. package/template/src/common/constant.ts +18 -0
  91. package/template/src/common/helperFunctions.ts +70 -0
  92. package/template/src/common/index.ts +3 -0
  93. package/template/src/components/NoInternetModalPopUp.tsx +71 -0
  94. package/template/src/components/PrimaryButton.tsx +74 -0
  95. package/template/src/components/PrimaryFlashMessage.tsx +122 -0
  96. package/template/src/components/PrimaryLoader.tsx +37 -0
  97. package/template/src/components/PrimaryScrollView.tsx +97 -0
  98. package/template/src/components/PrimaryText.tsx +25 -0
  99. package/template/src/components/index.ts +15 -0
  100. package/template/src/hooks/index.ts +0 -0
  101. package/template/src/i18n/en.json +30 -0
  102. package/template/src/i18n/es.json +30 -0
  103. package/template/src/i18n/i18n.ts +37 -0
  104. package/template/src/i18n/index.ts +4 -0
  105. package/template/src/index.tsx +25 -0
  106. package/template/src/navigation/AppStack.tsx +22 -0
  107. package/template/src/navigation/AuthStack.tsx +12 -0
  108. package/template/src/navigation/MainNavigation.tsx +35 -0
  109. package/template/src/navigation/RootNavigationRef.ts +46 -0
  110. package/template/src/navigation/TabNavigator.tsx +65 -0
  111. package/template/src/navigation/index.ts +5 -0
  112. package/template/src/screens/Home/index.tsx +51 -0
  113. package/template/src/screens/Login/index.tsx +48 -0
  114. package/template/src/screens/ModalScreen/index.tsx +56 -0
  115. package/template/src/screens/Profile/index.tsx +68 -0
  116. package/template/src/screens/index.ts +5 -0
  117. package/template/src/services/index.ts +0 -0
  118. package/template/src/static/index.ts +0 -0
  119. package/template/src/theme/colors.ts +7 -0
  120. package/template/src/theme/dimensions.ts +35 -0
  121. package/template/src/theme/index.ts +3 -0
  122. package/template/src/theme/styles.ts +7 -0
  123. package/template/src/types/declarations.d.ts +6 -0
  124. package/template/src/types/index.ts +64 -0
  125. package/template/tsconfig.json +27 -0
  126. package/template.config.js +10 -0
@@ -0,0 +1,38 @@
1
+ module.exports = {
2
+ presets: ['module:@react-native/babel-preset'],
3
+ plugins: [
4
+ [
5
+ 'module-resolver',
6
+ {
7
+ root: ['./src'],
8
+ extensions: [
9
+ '.ios.ts',
10
+ '.android.ts',
11
+ '.ts',
12
+ '.ios.tsx',
13
+ '.android.tsx',
14
+ '.jsx',
15
+ '.js',
16
+ '.json',
17
+ ],
18
+ alias: {
19
+ '@api': './src/api',
20
+ '@assets': './src/assets',
21
+ '@common': './src/common',
22
+ '@components': './src/components',
23
+ '@fonts': './src/assets/fonts',
24
+ '@hooks': './src/hooks',
25
+ '@i18n': './src/i18n',
26
+ '@images': './src/assets/images',
27
+ '@navigation': './src/navigation',
28
+ '@appRedux': './src/appRedux',
29
+ '@screens': './src/screens',
30
+ '@services': './src/services',
31
+ '@static': './src/static',
32
+ '@theme': './src/theme',
33
+ '@types': './src/types',
34
+ },
35
+ },
36
+ ],
37
+ ],
38
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @format
3
+ */
4
+ import 'react-native-gesture-handler';
5
+ import {AppRegistry} from 'react-native';
6
+ import App from './src';
7
+ import {name as appName} from './app.json';
8
+
9
+ AppRegistry.registerComponent(appName, () => App);
@@ -0,0 +1,11 @@
1
+ # This `.xcode.env` file is versioned and is used to source the environment
2
+ # used when running script phases inside Xcode.
3
+ # To customize your local environment, you can create an `.xcode.env.local`
4
+ # file that is not versioned.
5
+
6
+ # NODE_BINARY variable contains the PATH to the node executable.
7
+ #
8
+ # Customize the NODE_BINARY variable here.
9
+ # For example, to use nvm with brew, add the following line
10
+ # . "$(brew --prefix nvm)/nvm.sh" --no-use
11
+ export NODE_BINARY=$(command -v node)
@@ -0,0 +1,48 @@
1
+ import UIKit
2
+ import React
3
+ import React_RCTAppDelegate
4
+ import ReactAppDependencyProvider
5
+
6
+ @main
7
+ class AppDelegate: UIResponder, UIApplicationDelegate {
8
+ var window: UIWindow?
9
+
10
+ var reactNativeDelegate: ReactNativeDelegate?
11
+ var reactNativeFactory: RCTReactNativeFactory?
12
+
13
+ func application(
14
+ _ application: UIApplication,
15
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
16
+ ) -> Bool {
17
+ let delegate = ReactNativeDelegate()
18
+ let factory = RCTReactNativeFactory(delegate: delegate)
19
+ delegate.dependencyProvider = RCTAppDependencyProvider()
20
+
21
+ reactNativeDelegate = delegate
22
+ reactNativeFactory = factory
23
+
24
+ window = UIWindow(frame: UIScreen.main.bounds)
25
+
26
+ factory.startReactNative(
27
+ withModuleName: "HelloWorld",
28
+ in: window,
29
+ launchOptions: launchOptions
30
+ )
31
+
32
+ return true
33
+ }
34
+ }
35
+
36
+ class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
37
+ override func sourceURL(for bridge: RCTBridge) -> URL? {
38
+ self.bundleURL()
39
+ }
40
+
41
+ override func bundleURL() -> URL? {
42
+ #if DEBUG
43
+ RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
44
+ #else
45
+ Bundle.main.url(forResource: "main", withExtension: "jsbundle")
46
+ #endif
47
+ }
48
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "iphone",
5
+ "scale" : "2x",
6
+ "size" : "20x20"
7
+ },
8
+ {
9
+ "idiom" : "iphone",
10
+ "scale" : "3x",
11
+ "size" : "20x20"
12
+ },
13
+ {
14
+ "idiom" : "iphone",
15
+ "scale" : "2x",
16
+ "size" : "29x29"
17
+ },
18
+ {
19
+ "idiom" : "iphone",
20
+ "scale" : "3x",
21
+ "size" : "29x29"
22
+ },
23
+ {
24
+ "idiom" : "iphone",
25
+ "scale" : "2x",
26
+ "size" : "40x40"
27
+ },
28
+ {
29
+ "idiom" : "iphone",
30
+ "scale" : "3x",
31
+ "size" : "40x40"
32
+ },
33
+ {
34
+ "idiom" : "iphone",
35
+ "scale" : "2x",
36
+ "size" : "60x60"
37
+ },
38
+ {
39
+ "idiom" : "iphone",
40
+ "scale" : "3x",
41
+ "size" : "60x60"
42
+ },
43
+ {
44
+ "idiom" : "ios-marketing",
45
+ "scale" : "1x",
46
+ "size" : "1024x1024"
47
+ }
48
+ ],
49
+ "info" : {
50
+ "author" : "xcode",
51
+ "version" : 1
52
+ }
53
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "info" : {
3
+ "version" : 1,
4
+ "author" : "xcode"
5
+ }
6
+ }
@@ -0,0 +1,73 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CADisableMinimumFrameDurationOnPhone</key>
6
+ <true/>
7
+ <key>CFBundleDevelopmentRegion</key>
8
+ <string>en</string>
9
+ <key>CFBundleDisplayName</key>
10
+ <string>HelloWorld</string>
11
+ <key>CFBundleExecutable</key>
12
+ <string>$(EXECUTABLE_NAME)</string>
13
+ <key>CFBundleIdentifier</key>
14
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15
+ <key>CFBundleInfoDictionaryVersion</key>
16
+ <string>6.0</string>
17
+ <key>CFBundleName</key>
18
+ <string>$(PRODUCT_NAME)</string>
19
+ <key>CFBundlePackageType</key>
20
+ <string>APPL</string>
21
+ <key>CFBundleShortVersionString</key>
22
+ <string>$(MARKETING_VERSION)</string>
23
+ <key>CFBundleSignature</key>
24
+ <string>????</string>
25
+ <key>CFBundleVersion</key>
26
+ <string>$(CURRENT_PROJECT_VERSION)</string>
27
+ <key>LSRequiresIPhoneOS</key>
28
+ <true/>
29
+ <key>NSAppTransportSecurity</key>
30
+ <dict>
31
+ <key>NSAllowsArbitraryLoads</key>
32
+ <false/>
33
+ <key>NSAllowsLocalNetworking</key>
34
+ <true/>
35
+ </dict>
36
+ <key>NSLocationWhenInUseUsageDescription</key>
37
+ <string/>
38
+ <key>RCTNewArchEnabled</key>
39
+ <true/>
40
+ <key>UILaunchStoryboardName</key>
41
+ <string>LaunchScreen</string>
42
+ <key>UIRequiredDeviceCapabilities</key>
43
+ <array>
44
+ <string>arm64</string>
45
+ </array>
46
+ <key>UISupportedInterfaceOrientations</key>
47
+ <array>
48
+ <string>UIInterfaceOrientationPortrait</string>
49
+ </array>
50
+ <key>UISupportedInterfaceOrientations~ipad</key>
51
+ <array>
52
+ <string>UIInterfaceOrientationLandscapeLeft</string>
53
+ <string>UIInterfaceOrientationLandscapeRight</string>
54
+ <string>UIInterfaceOrientationPortrait</string>
55
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
56
+ </array>
57
+ <key>UIViewControllerBasedStatusBarAppearance</key>
58
+ <false/>
59
+ <key>UIAppFonts</key>
60
+ <array>
61
+ <string>Poppins-ExtraLight.ttf</string>
62
+ <string>Poppins-Light.ttf</string>
63
+ <string>Poppins-Medium.ttf</string>
64
+ <string>Poppins-ExtraBold.ttf</string>
65
+ <string>Poppins-Regular.ttf</string>
66
+ <string>Poppins-Bold.ttf</string>
67
+ <string>Poppins-Black.ttf</string>
68
+ <string>Poppins-Thin.ttf</string>
69
+ <string>Poppins-SemiBold.ttf</string>
70
+ <string>Poppins-Italic.ttf</string>
71
+ </array>
72
+ </dict>
73
+ </plist>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <deployment identifier="iOS"/>
6
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
7
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+ </dependencies>
10
+ <scenes>
11
+ <!--View Controller-->
12
+ <scene sceneID="EHf-IW-A2E">
13
+ <objects>
14
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+ <subviews>
19
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="RNBoilerPlate" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
20
+ <rect key="frame" x="0.0" y="202" width="375" height="43"/>
21
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
22
+ <nil key="highlightedColor"/>
23
+ </label>
24
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
25
+ <rect key="frame" x="0.0" y="626" width="375" height="21"/>
26
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
27
+ <nil key="highlightedColor"/>
28
+ </label>
29
+ </subviews>
30
+ <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
31
+ <constraints>
32
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
33
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
34
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
35
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
36
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
37
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
38
+ </constraints>
39
+ <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
40
+ </view>
41
+ </viewController>
42
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
43
+ </objects>
44
+ <point key="canvasLocation" x="52.173913043478265" y="375"/>
45
+ </scene>
46
+ </scenes>
47
+ </document>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>NSPrivacyAccessedAPITypes</key>
6
+ <array>
7
+ <dict>
8
+ <key>NSPrivacyAccessedAPIType</key>
9
+ <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
10
+ <key>NSPrivacyAccessedAPITypeReasons</key>
11
+ <array>
12
+ <string>C617.1</string>
13
+ </array>
14
+ </dict>
15
+ <dict>
16
+ <key>NSPrivacyAccessedAPIType</key>
17
+ <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
18
+ <key>NSPrivacyAccessedAPITypeReasons</key>
19
+ <array>
20
+ <string>35F9.1</string>
21
+ </array>
22
+ </dict>
23
+ <dict>
24
+ <key>NSPrivacyAccessedAPIType</key>
25
+ <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
26
+ <key>NSPrivacyAccessedAPITypeReasons</key>
27
+ <array>
28
+ <string>CA92.1</string>
29
+ </array>
30
+ </dict>
31
+ <dict>
32
+ <key>NSPrivacyAccessedAPIType</key>
33
+ <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
34
+ <key>NSPrivacyAccessedAPITypeReasons</key>
35
+ <array>
36
+ <string>85F4.1</string>
37
+ </array>
38
+ </dict>
39
+ </array>
40
+ <key>NSPrivacyCollectedDataTypes</key>
41
+ <array/>
42
+ <key>NSPrivacyTracking</key>
43
+ <false/>
44
+ </dict>
45
+ </plist>