├── .gitattributes ├── .gitignore ├── AnimatedSplashExample1 ├── .buckconfig ├── .bundle │ └── config ├── .eslintrc.js ├── .flowconfig ├── .gitignore ├── .prettierrc.js ├── .ruby-version ├── .watchmanconfig ├── App.js ├── Gemfile ├── SOAPWrapper.js ├── Splash.js ├── __tests__ │ └── App-test.js ├── android │ ├── app │ │ ├── _BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── animatedsplashexample1 │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── animatedsplashexample1 │ │ │ │ ├── MainActivity.java │ │ │ │ ├── MainApplication.java │ │ │ │ └── newarchitecture │ │ │ │ ├── MainApplicationReactNativeHost.java │ │ │ │ ├── components │ │ │ │ └── MainComponentsRegistry.java │ │ │ │ └── modules │ │ │ │ └── MainApplicationTurboModuleManagerDelegate.java │ │ │ ├── jni │ │ │ ├── Android.mk │ │ │ ├── MainApplicationModuleProvider.cpp │ │ │ ├── MainApplicationModuleProvider.h │ │ │ ├── MainApplicationTurboModuleManagerDelegate.cpp │ │ │ ├── MainApplicationTurboModuleManagerDelegate.h │ │ │ ├── MainComponentsRegistry.cpp │ │ │ ├── MainComponentsRegistry.h │ │ │ └── OnLoad.cpp │ │ │ └── res │ │ │ ├── anim │ │ │ ├── faday.xml │ │ │ ├── fadein_dialog.xml │ │ │ ├── fadeout_dialog.xml │ │ │ ├── flip_animation.xml │ │ │ ├── slide_down.xml │ │ │ ├── slide_left.xml │ │ │ ├── slide_right.xml │ │ │ └── slide_up.xml │ │ │ ├── drawable │ │ │ ├── logo.png │ │ │ ├── oval1.png │ │ │ ├── oval2.png │ │ │ └── oval3.png │ │ │ ├── layout │ │ │ └── launch_screen.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ ├── ic_launcher2.xml │ │ │ ├── ic_launcher2_round.xml │ │ │ └── ic_launcher_round.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher2.png │ │ │ ├── ic_launcher2_background.png │ │ │ ├── ic_launcher2_foreground.png │ │ │ ├── ic_launcher2_round.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher2.png │ │ │ ├── ic_launcher2_background.png │ │ │ ├── ic_launcher2_foreground.png │ │ │ ├── ic_launcher2_round.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher2.png │ │ │ ├── ic_launcher2_background.png │ │ │ ├── ic_launcher2_foreground.png │ │ │ ├── ic_launcher2_round.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher2.png │ │ │ ├── ic_launcher2_background.png │ │ │ ├── ic_launcher2_foreground.png │ │ │ ├── ic_launcher2_round.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher2.png │ │ │ ├── ic_launcher2_background.png │ │ │ ├── ic_launcher2_foreground.png │ │ │ ├── ic_launcher2_round.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── color.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── app.json ├── babel.config.js ├── ccc.js ├── index.js ├── ios │ ├── AnimatedSplashExample1.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── AnimatedSplashExample1.xcscheme │ ├── AnimatedSplashExample1.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── AnimatedSplashExample1 │ │ ├── AppDelegate.h │ │ ├── AppDelegate.mm │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── 1024.png │ │ │ │ ├── 120-1.png │ │ │ │ ├── 120.png │ │ │ │ ├── 180.png │ │ │ │ ├── 40.png │ │ │ │ ├── 58.png │ │ │ │ ├── 60.png │ │ │ │ ├── 80.png │ │ │ │ ├── 87.png │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ ├── circle1.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── oval3-1.png │ │ │ │ ├── oval3-2.png │ │ │ │ └── oval3.png │ │ │ ├── circle2.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── oval2-1.png │ │ │ │ ├── oval2-2.png │ │ │ │ └── oval2.png │ │ │ ├── circle3.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── oval1-1.png │ │ │ │ ├── oval1-2.png │ │ │ │ └── oval1.png │ │ │ ├── logo1.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── logo-1.png │ │ │ │ ├── logo-2.png │ │ │ │ └── logo.png │ │ │ ├── splashbg.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── splashbg.png │ │ │ │ ├── splashbg@2x.png │ │ │ │ └── splashbg@3x.png │ │ │ └── truck.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── truck.png │ │ │ │ ├── truck@2x.png │ │ │ │ └── truck@3x.png │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── main.m │ ├── AnimatedSplashExample1Tests │ │ ├── AnimatedSplashExample1Tests.m │ │ └── Info.plist │ ├── Podfile │ ├── Podfile.lock │ └── _xcode.env ├── metro.config.js ├── package.json ├── src │ └── assets │ │ └── images │ │ ├── logo.png │ │ └── logo2.png └── yarn.lock ├── AnimatedSplashExample2 ├── .buckconfig ├── .bundle │ └── config ├── .eslintrc.js ├── .flowconfig ├── .gitignore ├── .prettierrc.js ├── .ruby-version ├── .watchmanconfig ├── App.js ├── Gemfile ├── __tests__ │ └── App-test.js ├── _node-version ├── android │ ├── app │ │ ├── _BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── animatedsplashexample2 │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── animatedsplashexample2 │ │ │ │ ├── MainActivity.java │ │ │ │ ├── MainApplication.java │ │ │ │ └── newarchitecture │ │ │ │ ├── MainApplicationReactNativeHost.java │ │ │ │ ├── components │ │ │ │ └── MainComponentsRegistry.java │ │ │ │ └── modules │ │ │ │ └── MainApplicationTurboModuleManagerDelegate.java │ │ │ ├── jni │ │ │ ├── CMakeLists.txt │ │ │ ├── MainApplicationModuleProvider.cpp │ │ │ ├── MainApplicationModuleProvider.h │ │ │ ├── MainApplicationTurboModuleManagerDelegate.cpp │ │ │ ├── MainApplicationTurboModuleManagerDelegate.h │ │ │ ├── MainComponentsRegistry.cpp │ │ │ ├── MainComponentsRegistry.h │ │ │ └── OnLoad.cpp │ │ │ └── res │ │ │ ├── drawable │ │ │ ├── footer.png │ │ │ ├── header.png │ │ │ ├── logo2.png │ │ │ └── splashbg.png │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher_background.png │ │ │ ├── ic_launcher_foreground.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── color.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios │ ├── AnimatedSplashExample2.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── AnimatedSplashExample2.xcscheme │ ├── AnimatedSplashExample2.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── AnimatedSplashExample2 │ │ ├── AppDelegate.h │ │ ├── AppDelegate.mm │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── 1024.png │ │ │ │ ├── 120-1.png │ │ │ │ ├── 120.png │ │ │ │ ├── 180.png │ │ │ │ ├── 40.png │ │ │ │ ├── 58.png │ │ │ │ ├── 60.png │ │ │ │ ├── 80.png │ │ │ │ ├── 87.png │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ ├── footer.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── footer-1.png │ │ │ │ ├── footer-2.png │ │ │ │ └── footer.png │ │ │ ├── header.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── header-1.png │ │ │ │ ├── header-2.png │ │ │ │ └── header.png │ │ │ ├── logo2.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── logo2-1.png │ │ │ │ ├── logo2-2.png │ │ │ │ └── logo2.png │ │ │ └── splashBg.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── splashbg-1.png │ │ │ │ ├── splashbg-2.png │ │ │ │ └── splashbg.png │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── main.m │ ├── AnimatedSplashExample2Tests │ │ ├── AnimatedSplashExample2Tests.m │ │ └── Info.plist │ ├── Podfile │ ├── Podfile.lock │ └── _xcode.env ├── metro.config.js ├── package.json ├── src │ └── assets │ │ └── images │ │ └── logo2.png └── yarn.lock ├── LICENSE ├── README.md ├── RNAnimatedSplash.podspec ├── SECURITY.md ├── android ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── blitzapp │ │ └── animatedsplash │ │ ├── AnimationsList.java │ │ ├── HideAnimationList.java │ │ ├── ListItem.java │ │ ├── RNAnimatedSplashModule.java │ │ ├── RNAnimatedSplashPackage.java │ │ └── animation │ │ ├── AnimatedObject.java │ │ ├── AnimatedText.java │ │ ├── Constants.java │ │ ├── GroupAnimation.java │ │ ├── HideGroupAnimation.java │ │ ├── HideSingleAnimation.java │ │ ├── NoAnimationException.java │ │ ├── ObjectAnimation.java │ │ ├── SingleAnimation.java │ │ └── Splash.java │ └── res │ ├── anim │ ├── faday.xml │ ├── fadein_dialog.xml │ ├── fadeout_dialog.xml │ ├── flip_animation.xml │ ├── slide_down.xml │ ├── slide_left.xml │ ├── slide_right.xml │ └── slide_up.xml │ └── values │ └── styles.xml ├── androidDescription.md ├── androidexample.md ├── example1.gif ├── example1ios.gif ├── example2.gif ├── example2ios.gif ├── index.js ├── ios ├── Animation │ ├── AddImageView.h │ ├── AddImageView.m │ ├── AnimateObject.h │ ├── AnimateObject.m │ ├── AnimatedObject.h │ ├── AnimatedObject.m │ ├── AnimationsList.h │ ├── AnimationsList.m │ ├── GroupAnimation.h │ ├── GroupAnimation.m │ ├── HideAnimationsList.h │ ├── HideAnimationsList.m │ ├── HideGroupAnimation.h │ ├── HideGroupAnimation.m │ ├── HideSingleAnimation.h │ ├── HideSingleAnimation.m │ ├── ObjectAnimation.h │ ├── ObjectAnimation.m │ ├── SingleAnimation.h │ ├── SingleAnimation.m │ ├── Splash.h │ └── Splash.m ├── Podfile ├── Podfile.lock ├── Pods │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ └── Pods-RNAnimatedSplash │ │ ├── Pods-RNAnimatedSplash-Info.plist │ │ ├── Pods-RNAnimatedSplash-acknowledgements.markdown │ │ ├── Pods-RNAnimatedSplash-acknowledgements.plist │ │ ├── Pods-RNAnimatedSplash-dummy.m │ │ ├── Pods-RNAnimatedSplash-umbrella.h │ │ ├── Pods-RNAnimatedSplash.debug.xcconfig │ │ ├── Pods-RNAnimatedSplash.modulemap │ │ └── Pods-RNAnimatedSplash.release.xcconfig ├── RNAnimatedSplash.h ├── RNAnimatedSplash.m ├── RNAnimatedSplash.podspec ├── RNAnimatedSplash.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── RNAnimatedSplash.xcscheme └── RNAnimatedSplash.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── iosDescription.md ├── iosexample.md └── package.json /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # OSX 3 | # 4 | .DS_Store 5 | 6 | # node.js 7 | # 8 | node_modules/ 9 | npm-debug.log 10 | yarn-error.log 11 | 12 | 13 | # Xcode 14 | # 15 | build/ 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | xcuserdata 25 | *.xccheckout 26 | *.moved-aside 27 | DerivedData 28 | *.hmap 29 | *.ipa 30 | *.xcuserstate 31 | project.xcworkspace 32 | 33 | 34 | # Android/IntelliJ 35 | # 36 | build/ 37 | .idea 38 | .gradle 39 | local.properties 40 | *.iml 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | *.keystore 46 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; Flow doesn't support platforms 12 | .*/Libraries/Utilities/LoadingView.js 13 | 14 | .*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$ 15 | 16 | [untyped] 17 | .*/node_modules/@react-native-community/cli/.*/.* 18 | 19 | [include] 20 | 21 | [libs] 22 | node_modules/react-native/interface.js 23 | node_modules/react-native/flow/ 24 | 25 | [options] 26 | emoji=true 27 | 28 | exact_by_default=true 29 | 30 | format.bracket_spacing=false 31 | 32 | module.file_ext=.js 33 | module.file_ext=.json 34 | module.file_ext=.ios.js 35 | 36 | munge_underscores=true 37 | 38 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 39 | 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\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 40 | 41 | suppress_type=$FlowIssue 42 | suppress_type=$FlowFixMe 43 | suppress_type=$FlowFixMeProps 44 | suppress_type=$FlowFixMeState 45 | 46 | [lints] 47 | sketchy-null-number=warn 48 | sketchy-null-mixed=warn 49 | sketchy-number=warn 50 | untyped-type-import=warn 51 | nonstrict-import=warn 52 | deprecated-type=warn 53 | unsafe-getters-setters=warn 54 | unnecessary-invariant=warn 55 | 56 | [strict] 57 | deprecated-type 58 | nonstrict-import 59 | sketchy-null 60 | unclear-type 61 | unsafe-getters-setters 62 | untyped-import 63 | untyped-type-import 64 | 65 | [version] 66 | ^0.176.3 67 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/.gitignore: -------------------------------------------------------------------------------- 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/ 64 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | bracketSameLine: true, 4 | bracketSpacing: false, 5 | singleQuote: true, 6 | trailingComma: 'all', 7 | }; 8 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/.ruby-version: -------------------------------------------------------------------------------- 1 | 2.7.5 2 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /AnimatedSplashExample1/Gemfile: -------------------------------------------------------------------------------- 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' 7 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/SOAPWrapper.js: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | var request; 3 | export const base_url = "https://iplanprime.eventready.com" 4 | 5 | 6 | export const getData = (endpoint, data) => { 7 | let reqParams = getBodyParams(data) 8 | let requestString = makeFinalRequestString(base_url, endpoint, reqParams) 9 | console.log("XML_REQUEST", requestString) 10 | request.send(requestString); 11 | 12 | request.onload = function () { 13 | parseXML(endpoint, this.responseText) 14 | }; 15 | } 16 | 17 | const parseXML = (endpoint, response) => { 18 | var parseString = require('react-native-xml2js').parseString; 19 | console.log("XML_RESPONSE", response); 20 | parseString(response, function (err, result) { 21 | console.log("RESPONSE", result); 22 | var error = result["soapenv:Envelope"]["soapenv:Body"][0]["soapenv:Fault"]; 23 | if (error != undefined) { 24 | let errResponse = { 25 | code: error[0]["faultcode"][0], 26 | message: error[0]["faultstring"][0] 27 | } 28 | console.log(errResponse); 29 | return errResponse 30 | } else { 31 | let res = JSON.parse(result["soapenv:Envelope"]["soapenv:Body"][0][`ns1:${endpoint}Response`][0][`${endpoint}Return`][0]["_"]) 32 | console.log("result", res); 33 | } 34 | 35 | }); 36 | } 37 | 38 | export const makeFinalRequestString = (base_url, endpoint, data, key = "FB2E1B876F9EC303179F37BFEB2C56E4") => { 39 | reqString = ` 40 | 41 | 42 | 43 | 44 | ${key} 45 | ${data} 46 | 47 | 48 | ` 49 | 50 | return reqString 51 | } 52 | 53 | const getBodyParams = (data) => { 54 | let entries = Object.entries(data) 55 | let reqParams = `` 56 | entries.forEach((entry) => { 57 | reqParams += `<${entry[0]}>${entry[1]}` 58 | }) 59 | return reqParams; 60 | 61 | } 62 | 63 | const initXHRRequest = () => { 64 | request = new XMLHttpRequest(); 65 | request.open('POST', 'https://ws.eventready.com/com/iplanprime/obap_api.cfc'); 66 | //Setting Headers 67 | request.setRequestHeader("SOAPAction", "") 68 | request.setRequestHeader('Access-Control-Allow-Origin', '*'); 69 | request.setRequestHeader('Content-Type', 'text/xml;; charset="utf-8"'); 70 | request.setRequestHeader('Accept', 'application/xml') 71 | } 72 | 73 | 74 | 75 | initXHRRequest() 76 | var data = { 77 | event_id: 847, 78 | reg_id: 0 79 | } 80 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/Splash.js: -------------------------------------------------------------------------------- 1 | import { 2 | NativeModules, 3 | Platform 4 | } from 'react-native' 5 | import AnimatedSplash from "react-native-animated-splash"; 6 | var Splash = { 7 | hide:()=> { 8 | if(Platform.OS == "android"){ 9 | if(AnimatedSplash){ 10 | AnimatedSplash.hide() 11 | }else{ 12 | console.warn('Please link library again') 13 | }} 14 | else{ 15 | if(NativeModules.splash){ 16 | NativeModules.splash.hide() 17 | }else{ 18 | console.warn('Please link library again') 19 | } 20 | } 21 | }, 22 | navigate:()=> { 23 | if(NativeModules.splash){ 24 | NativeModules.splash.hide() 25 | }else{ 26 | console.warn('Please link library again') 27 | } 28 | }, 29 | } 30 | 31 | export default Splash -------------------------------------------------------------------------------- /AnimatedSplashExample1/__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/_BUCK: -------------------------------------------------------------------------------- 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.animatedsplashexample1", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.animatedsplashexample1", 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 | ) 56 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/debug.keystore -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/java/com/animatedsplashexample1/newarchitecture/components/MainComponentsRegistry.java: -------------------------------------------------------------------------------- 1 | package com.animatedsplashexample1.newarchitecture.components; 2 | 3 | import com.facebook.jni.HybridData; 4 | import com.facebook.proguard.annotations.DoNotStrip; 5 | import com.facebook.react.fabric.ComponentFactory; 6 | import com.facebook.soloader.SoLoader; 7 | 8 | /** 9 | * Class responsible to load the custom Fabric Components. This class has native methods and needs a 10 | * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ 11 | * folder for you). 12 | * 13 | *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the 14 | * `newArchEnabled` property). Is ignored otherwise. 15 | */ 16 | @DoNotStrip 17 | public class MainComponentsRegistry { 18 | static { 19 | SoLoader.loadLibrary("fabricjni"); 20 | } 21 | 22 | @DoNotStrip private final HybridData mHybridData; 23 | 24 | @DoNotStrip 25 | private native HybridData initHybrid(ComponentFactory componentFactory); 26 | 27 | @DoNotStrip 28 | private MainComponentsRegistry(ComponentFactory componentFactory) { 29 | mHybridData = initHybrid(componentFactory); 30 | } 31 | 32 | @DoNotStrip 33 | public static MainComponentsRegistry register(ComponentFactory componentFactory) { 34 | return new MainComponentsRegistry(componentFactory); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/java/com/animatedsplashexample1/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java: -------------------------------------------------------------------------------- 1 | package com.animatedsplashexample1.newarchitecture.modules; 2 | 3 | import com.facebook.jni.HybridData; 4 | import com.facebook.react.ReactPackage; 5 | import com.facebook.react.ReactPackageTurboModuleManagerDelegate; 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.soloader.SoLoader; 8 | import java.util.List; 9 | 10 | /** 11 | * Class responsible to load the TurboModules. This class has native methods and needs a 12 | * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ 13 | * folder for you). 14 | * 15 | *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the 16 | * `newArchEnabled` property). Is ignored otherwise. 17 | */ 18 | public class MainApplicationTurboModuleManagerDelegate 19 | extends ReactPackageTurboModuleManagerDelegate { 20 | 21 | private static volatile boolean sIsSoLibraryLoaded; 22 | 23 | protected MainApplicationTurboModuleManagerDelegate( 24 | ReactApplicationContext reactApplicationContext, List packages) { 25 | super(reactApplicationContext, packages); 26 | } 27 | 28 | protected native HybridData initHybrid(); 29 | 30 | native boolean canCreateTurboModule(String moduleName); 31 | 32 | public static class Builder extends ReactPackageTurboModuleManagerDelegate.Builder { 33 | protected MainApplicationTurboModuleManagerDelegate build( 34 | ReactApplicationContext context, List packages) { 35 | return new MainApplicationTurboModuleManagerDelegate(context, packages); 36 | } 37 | } 38 | 39 | @Override 40 | protected synchronized void maybeLoadOtherSoLibraries() { 41 | if (!sIsSoLibraryLoaded) { 42 | // If you change the name of your application .so file in the Android.mk file, 43 | // make sure you update the name here as well. 44 | SoLoader.loadLibrary("animatedsplashexample1_appmodules"); 45 | sIsSoLibraryLoaded = true; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/jni/Android.mk: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(call my-dir) 2 | 3 | include $(REACT_ANDROID_DIR)/Android-prebuilt.mk 4 | 5 | # If you wish to add a custom TurboModule or Fabric component in your app you 6 | # will have to include the following autogenerated makefile. 7 | # include $(GENERATED_SRC_DIR)/codegen/jni/Android.mk 8 | include $(CLEAR_VARS) 9 | 10 | LOCAL_PATH := $(THIS_DIR) 11 | 12 | # You can customize the name of your application .so file here. 13 | LOCAL_MODULE := animatedsplashexample1_appmodules 14 | 15 | LOCAL_C_INCLUDES := $(LOCAL_PATH) 16 | LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) 17 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) 18 | 19 | # If you wish to add a custom TurboModule or Fabric component in your app you 20 | # will have to uncomment those lines to include the generated source 21 | # files from the codegen (placed in $(GENERATED_SRC_DIR)/codegen/jni) 22 | # 23 | # LOCAL_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni 24 | # LOCAL_SRC_FILES += $(wildcard $(GENERATED_SRC_DIR)/codegen/jni/*.cpp) 25 | # LOCAL_EXPORT_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni 26 | 27 | # Here you should add any native library you wish to depend on. 28 | LOCAL_SHARED_LIBRARIES := \ 29 | libfabricjni \ 30 | libfbjni \ 31 | libfolly_runtime \ 32 | libglog \ 33 | libjsi \ 34 | libreact_codegen_rncore \ 35 | libreact_debug \ 36 | libreact_nativemodule_core \ 37 | libreact_render_componentregistry \ 38 | libreact_render_core \ 39 | libreact_render_debug \ 40 | libreact_render_graphics \ 41 | librrc_view \ 42 | libruntimeexecutor \ 43 | libturbomodulejsijni \ 44 | libyoga 45 | 46 | LOCAL_CFLAGS := -DLOG_TAG=\"ReactNative\" -fexceptions -frtti -std=c++17 -Wall 47 | 48 | include $(BUILD_SHARED_LIBRARY) 49 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/jni/MainApplicationModuleProvider.cpp: -------------------------------------------------------------------------------- 1 | #include "MainApplicationModuleProvider.h" 2 | 3 | #include 4 | 5 | namespace facebook { 6 | namespace react { 7 | 8 | std::shared_ptr MainApplicationModuleProvider( 9 | const std::string moduleName, 10 | const JavaTurboModule::InitParams ¶ms) { 11 | // Here you can provide your own module provider for TurboModules coming from 12 | // either your application or from external libraries. The approach to follow 13 | // is similar to the following (for a library called `samplelibrary`: 14 | // 15 | // auto module = samplelibrary_ModuleProvider(moduleName, params); 16 | // if (module != nullptr) { 17 | // return module; 18 | // } 19 | // return rncore_ModuleProvider(moduleName, params); 20 | return rncore_ModuleProvider(moduleName, params); 21 | } 22 | 23 | } // namespace react 24 | } // namespace facebook 25 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/jni/MainApplicationModuleProvider.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | namespace facebook { 9 | namespace react { 10 | 11 | std::shared_ptr MainApplicationModuleProvider( 12 | const std::string moduleName, 13 | const JavaTurboModule::InitParams ¶ms); 14 | 15 | } // namespace react 16 | } // namespace facebook 17 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp: -------------------------------------------------------------------------------- 1 | #include "MainApplicationTurboModuleManagerDelegate.h" 2 | #include "MainApplicationModuleProvider.h" 3 | 4 | namespace facebook { 5 | namespace react { 6 | 7 | jni::local_ref 8 | MainApplicationTurboModuleManagerDelegate::initHybrid( 9 | jni::alias_ref) { 10 | return makeCxxInstance(); 11 | } 12 | 13 | void MainApplicationTurboModuleManagerDelegate::registerNatives() { 14 | registerHybrid({ 15 | makeNativeMethod( 16 | "initHybrid", MainApplicationTurboModuleManagerDelegate::initHybrid), 17 | makeNativeMethod( 18 | "canCreateTurboModule", 19 | MainApplicationTurboModuleManagerDelegate::canCreateTurboModule), 20 | }); 21 | } 22 | 23 | std::shared_ptr 24 | MainApplicationTurboModuleManagerDelegate::getTurboModule( 25 | const std::string name, 26 | const std::shared_ptr jsInvoker) { 27 | // Not implemented yet: provide pure-C++ NativeModules here. 28 | return nullptr; 29 | } 30 | 31 | std::shared_ptr 32 | MainApplicationTurboModuleManagerDelegate::getTurboModule( 33 | const std::string name, 34 | const JavaTurboModule::InitParams ¶ms) { 35 | return MainApplicationModuleProvider(name, params); 36 | } 37 | 38 | bool MainApplicationTurboModuleManagerDelegate::canCreateTurboModule( 39 | std::string name) { 40 | return getTurboModule(name, nullptr) != nullptr || 41 | getTurboModule(name, {.moduleName = name}) != nullptr; 42 | } 43 | 44 | } // namespace react 45 | } // namespace facebook 46 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | #include 6 | 7 | namespace facebook { 8 | namespace react { 9 | 10 | class MainApplicationTurboModuleManagerDelegate 11 | : public jni::HybridClass< 12 | MainApplicationTurboModuleManagerDelegate, 13 | TurboModuleManagerDelegate> { 14 | public: 15 | // Adapt it to the package you used for your Java class. 16 | static constexpr auto kJavaDescriptor = 17 | "Lcom/animatedsplashexample1/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;"; 18 | 19 | static jni::local_ref initHybrid(jni::alias_ref); 20 | 21 | static void registerNatives(); 22 | 23 | std::shared_ptr getTurboModule( 24 | const std::string name, 25 | const std::shared_ptr jsInvoker) override; 26 | std::shared_ptr getTurboModule( 27 | const std::string name, 28 | const JavaTurboModule::InitParams ¶ms) override; 29 | 30 | /** 31 | * Test-only method. Allows user to verify whether a TurboModule can be 32 | * created by instances of this class. 33 | */ 34 | bool canCreateTurboModule(std::string name); 35 | }; 36 | 37 | } // namespace react 38 | } // namespace facebook 39 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/jni/MainComponentsRegistry.cpp: -------------------------------------------------------------------------------- 1 | #include "MainComponentsRegistry.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace facebook { 9 | namespace react { 10 | 11 | MainComponentsRegistry::MainComponentsRegistry(ComponentFactory *delegate) {} 12 | 13 | std::shared_ptr 14 | MainComponentsRegistry::sharedProviderRegistry() { 15 | auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry(); 16 | 17 | // Custom Fabric Components go here. You can register custom 18 | // components coming from your App or from 3rd party libraries here. 19 | // 20 | // providerRegistry->add(concreteComponentDescriptorProvider< 21 | // AocViewerComponentDescriptor>()); 22 | return providerRegistry; 23 | } 24 | 25 | jni::local_ref 26 | MainComponentsRegistry::initHybrid( 27 | jni::alias_ref, 28 | ComponentFactory *delegate) { 29 | auto instance = makeCxxInstance(delegate); 30 | 31 | auto buildRegistryFunction = 32 | [](EventDispatcher::Weak const &eventDispatcher, 33 | ContextContainer::Shared const &contextContainer) 34 | -> ComponentDescriptorRegistry::Shared { 35 | auto registry = MainComponentsRegistry::sharedProviderRegistry() 36 | ->createComponentDescriptorRegistry( 37 | {eventDispatcher, contextContainer}); 38 | 39 | auto mutableRegistry = 40 | std::const_pointer_cast(registry); 41 | 42 | mutableRegistry->setFallbackComponentDescriptor( 43 | std::make_shared( 44 | ComponentDescriptorParameters{ 45 | eventDispatcher, contextContainer, nullptr})); 46 | 47 | return registry; 48 | }; 49 | 50 | delegate->buildRegistryFunction = buildRegistryFunction; 51 | return instance; 52 | } 53 | 54 | void MainComponentsRegistry::registerNatives() { 55 | registerHybrid({ 56 | makeNativeMethod("initHybrid", MainComponentsRegistry::initHybrid), 57 | }); 58 | } 59 | 60 | } // namespace react 61 | } // namespace facebook 62 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/jni/MainComponentsRegistry.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace facebook { 9 | namespace react { 10 | 11 | class MainComponentsRegistry 12 | : public facebook::jni::HybridClass { 13 | public: 14 | // Adapt it to the package you used for your Java class. 15 | constexpr static auto kJavaDescriptor = 16 | "Lcom/animatedsplashexample1/newarchitecture/components/MainComponentsRegistry;"; 17 | 18 | static void registerNatives(); 19 | 20 | MainComponentsRegistry(ComponentFactory *delegate); 21 | 22 | private: 23 | static std::shared_ptr 24 | sharedProviderRegistry(); 25 | 26 | static jni::local_ref initHybrid( 27 | jni::alias_ref, 28 | ComponentFactory *delegate); 29 | }; 30 | 31 | } // namespace react 32 | } // namespace facebook 33 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/jni/OnLoad.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "MainApplicationTurboModuleManagerDelegate.h" 3 | #include "MainComponentsRegistry.h" 4 | 5 | JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) { 6 | return facebook::jni::initialize(vm, [] { 7 | facebook::react::MainApplicationTurboModuleManagerDelegate:: 8 | registerNatives(); 9 | facebook::react::MainComponentsRegistry::registerNatives(); 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/anim/faday.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/anim/fadein_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/anim/fadeout_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/anim/flip_animation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 15 | 16 | 22 | 23 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/anim/slide_down.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/anim/slide_left.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/anim/slide_right.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/anim/slide_up.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/drawable/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/drawable/logo.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/drawable/oval1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/drawable/oval1.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/drawable/oval2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/drawable/oval2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/drawable/oval3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/drawable/oval3.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/layout/launch_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher2_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher2_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher2_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher2_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher2_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher2_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher2_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher2_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher2_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher2_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher2_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher2_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher2_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher2_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher2_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher2_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher2_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher2_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher2_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher2_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher2_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher2_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher2_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher2_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher2_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher2_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher2_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher2_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher2_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher2_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher2_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #10C2CF 4 | #101010 5 | 6 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | animatedsplashmodule 3 | 4 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 13 | 16 | 19 | 22 | 25 | 26 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/build.gradle: -------------------------------------------------------------------------------- 1 | import org.apache.tools.ant.taskdefs.condition.Os 2 | 3 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 4 | 5 | buildscript { 6 | ext { 7 | buildToolsVersion = "31.0.0" 8 | minSdkVersion = 21 9 | compileSdkVersion = 31 10 | targetSdkVersion = 31 11 | 12 | if (System.properties['os.arch'] == "aarch64") { 13 | // For M1 Users we need to use the NDK 24 which added support for aarch64 14 | ndkVersion = "24.0.8215888" 15 | } else { 16 | // Otherwise we default to the side-by-side NDK version from AGP. 17 | ndkVersion = "21.4.7075529" 18 | } 19 | } 20 | repositories { 21 | google() 22 | mavenCentral() 23 | } 24 | dependencies { 25 | classpath("com.android.tools.build:gradle:7.1.1") 26 | classpath("com.facebook.react:react-native-gradle-plugin") 27 | classpath("de.undercouch:gradle-download-task:5.0.1") 28 | // NOTE: Do not place your application dependencies here; they belong 29 | // in the individual module build.gradle files 30 | } 31 | } 32 | 33 | allprojects { 34 | repositories { 35 | maven { 36 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 37 | url("$rootDir/../node_modules/react-native/android") 38 | } 39 | maven { 40 | // Android JSC is installed from npm 41 | url("$rootDir/../node_modules/jsc-android/dist") 42 | } 43 | mavenCentral { 44 | // We don't want to fetch react-native from Maven Central as there are 45 | // older versions over there. 46 | content { 47 | excludeGroup "com.facebook.react" 48 | } 49 | } 50 | google() 51 | maven { url 'https://www.jitpack.io' } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.125.0 29 | 30 | # Use this property to specify which architecture you want to build. 31 | # You can also override it from the CLI using 32 | # ./gradlew -PreactNativeArchitectures=x86_64 33 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 34 | 35 | # Use this property to enable support to the new architecture. 36 | # This will allow you to use TurboModules and the Fabric render in 37 | # your application. You should enable this flag either if you want 38 | # to write custom TurboModules/Fabric components OR use libraries that 39 | # are providing them. 40 | newArchEnabled=false 41 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'AnimatedSplashExample1' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | includeBuild('../node_modules/react-native-gradle-plugin') 5 | 6 | if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { 7 | include(":ReactAndroid") 8 | project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid') 9 | include(":ReactAndroid:hermes-engine") 10 | project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') 11 | } 12 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AnimatedSplashExample1", 3 | "displayName": "AnimatedSplashExample1" 4 | } -------------------------------------------------------------------------------- /AnimatedSplashExample1/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ccc.js: -------------------------------------------------------------------------------- 1 | var req = ` 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | FB2E1B876F9EC303179F37BFEB2C56E4 12 | 13 | 847 14 | 0 15 | 16 | 17 | 18 | 19 | 20 | ` -------------------------------------------------------------------------------- /AnimatedSplashExample1/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | @class Splash; 6 | #import 7 | @class GroupAnimation; 8 | #import 9 | @class SingleAnimation; 10 | #import 11 | @class HideGroupAnimation; 12 | #import 13 | @class HideSingleAnimation; 14 | #import 15 | @class ObjectAnimation; 16 | 17 | @interface AppDelegate : UIResponder 18 | 19 | @property (nonatomic, strong) UIWindow *window; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/120-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/120-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/120.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/180.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/40.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/58.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/60.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/80.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/87.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "40.png", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "60.png", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "58.png", 17 | "idiom" : "iphone", 18 | "scale" : "2x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "87.png", 23 | "idiom" : "iphone", 24 | "scale" : "3x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "80.png", 29 | "idiom" : "iphone", 30 | "scale" : "2x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "filename" : "120.png", 35 | "idiom" : "iphone", 36 | "scale" : "3x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "120-1.png", 41 | "idiom" : "iphone", 42 | "scale" : "2x", 43 | "size" : "60x60" 44 | }, 45 | { 46 | "filename" : "180.png", 47 | "idiom" : "iphone", 48 | "scale" : "3x", 49 | "size" : "60x60" 50 | }, 51 | { 52 | "filename" : "1024.png", 53 | "idiom" : "ios-marketing", 54 | "scale" : "1x", 55 | "size" : "1024x1024" 56 | } 57 | ], 58 | "info" : { 59 | "author" : "xcode", 60 | "version" : 1 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "oval3.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "oval3-1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "oval3-2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle1.imageset/oval3-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle1.imageset/oval3-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle1.imageset/oval3-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle1.imageset/oval3-2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle1.imageset/oval3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle1.imageset/oval3.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "oval2.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "oval2-1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "oval2-2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle2.imageset/oval2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle2.imageset/oval2-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle2.imageset/oval2-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle2.imageset/oval2-2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle2.imageset/oval2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle2.imageset/oval2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "oval1.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "oval1-1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "oval1-2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle3.imageset/oval1-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle3.imageset/oval1-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle3.imageset/oval1-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle3.imageset/oval1-2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle3.imageset/oval1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/circle3.imageset/oval1.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/logo1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "logo.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "logo-1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "logo-2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/logo1.imageset/logo-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/logo1.imageset/logo-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/logo1.imageset/logo-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/logo1.imageset/logo-2.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/logo1.imageset/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/logo1.imageset/logo.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/splashbg.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "splashbg.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "splashbg@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "splashbg@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/splashbg.imageset/splashbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/splashbg.imageset/splashbg.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/splashbg.imageset/splashbg@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/splashbg.imageset/splashbg@2x.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/splashbg.imageset/splashbg@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/splashbg.imageset/splashbg@3x.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/truck.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "truck.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "truck@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "truck@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/truck.imageset/truck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/truck.imageset/truck.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/truck.imageset/truck@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/truck.imageset/truck@2x.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/truck.imageset/truck@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/ios/AnimatedSplashExample1/Images.xcassets/truck.imageset/truck@3x.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | AnimatedSplashExample1 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1Tests/AnimatedSplashExample1Tests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface AnimatedSplashExample1Tests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation AnimatedSplashExample1Tests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction( 38 | ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 39 | if (level >= RCTLogLevelError) { 40 | redboxError = message; 41 | } 42 | }); 43 | #endif 44 | 45 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 46 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 48 | 49 | foundElement = [self findSubviewInView:vc.view 50 | matching:^BOOL(UIView *view) { 51 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 52 | return YES; 53 | } 54 | return NO; 55 | }]; 56 | } 57 | 58 | #ifdef DEBUG 59 | RCTSetLogFunction(RCTDefaultLogFunction); 60 | #endif 61 | 62 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 63 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 64 | } 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/AnimatedSplashExample1Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '15.5' 5 | install! 'cocoapods', :deterministic_uuids => false 6 | 7 | production = ENV["PRODUCTION"] == "1" 8 | 9 | target 'AnimatedSplashExample1' do 10 | config = use_native_modules! 11 | 12 | # Flags change depending on the env values. 13 | flags = get_default_flags() 14 | 15 | use_react_native!( 16 | :path => config[:reactNativePath], 17 | # to enable hermes on iOS, change `false` to `true` and then install pods 18 | :production => production, 19 | :hermes_enabled => flags[:hermes_enabled], 20 | :fabric_enabled => flags[:fabric_enabled], 21 | :flipper_configuration => FlipperConfiguration.enabled, 22 | # An absolute path to your application root. 23 | :app_path => "#{Pod::Config.instance.installation_root}/.." 24 | ) 25 | 26 | target 'AnimatedSplashExample1Tests' do 27 | inherit! :complete 28 | # Pods for testing 29 | end 30 | 31 | post_install do |installer| 32 | react_native_post_install(installer) 33 | __apply_Xcode_12_5_M1_post_install_workaround(installer) 34 | end 35 | end 36 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/ios/_xcode.env: -------------------------------------------------------------------------------- 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) 12 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "animatedsplashexample1", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "react": "18.0.0", 14 | "react-native": "0.69.4", 15 | "react-native-animated-splash": "^1.3.8", 16 | "react-native-xml2js": "^1.0.3", 17 | "soap": "^0.45.0", 18 | "url": "^0.11.0", 19 | "zlib": "^1.0.5" 20 | }, 21 | "devDependencies": { 22 | "@babel/core": "^7.12.9", 23 | "@babel/runtime": "^7.12.5", 24 | "@react-native-community/eslint-config": "^2.0.0", 25 | "babel-jest": "^26.6.3", 26 | "eslint": "^7.32.0", 27 | "jest": "^26.6.3", 28 | "metro-react-native-babel-preset": "^0.70.3", 29 | "react-test-renderer": "18.0.0" 30 | }, 31 | "jest": { 32 | "preset": "react-native" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /AnimatedSplashExample1/src/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/src/assets/images/logo.png -------------------------------------------------------------------------------- /AnimatedSplashExample1/src/assets/images/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample1/src/assets/images/logo2.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; Flow doesn't support platforms 12 | .*/Libraries/Utilities/LoadingView.js 13 | 14 | .*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$ 15 | 16 | [untyped] 17 | .*/node_modules/@react-native-community/cli/.*/.* 18 | 19 | [include] 20 | 21 | [libs] 22 | node_modules/react-native/interface.js 23 | node_modules/react-native/flow/ 24 | 25 | [options] 26 | emoji=true 27 | 28 | exact_by_default=true 29 | 30 | format.bracket_spacing=false 31 | 32 | module.file_ext=.js 33 | module.file_ext=.json 34 | module.file_ext=.ios.js 35 | 36 | munge_underscores=true 37 | 38 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 39 | 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\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 40 | 41 | suppress_type=$FlowIssue 42 | suppress_type=$FlowFixMe 43 | suppress_type=$FlowFixMeProps 44 | suppress_type=$FlowFixMeState 45 | 46 | [lints] 47 | sketchy-null-number=warn 48 | sketchy-null-mixed=warn 49 | sketchy-number=warn 50 | untyped-type-import=warn 51 | nonstrict-import=warn 52 | deprecated-type=warn 53 | unsafe-getters-setters=warn 54 | unnecessary-invariant=warn 55 | 56 | [strict] 57 | deprecated-type 58 | nonstrict-import 59 | sketchy-null 60 | unclear-type 61 | unsafe-getters-setters 62 | untyped-import 63 | untyped-type-import 64 | 65 | [version] 66 | ^0.182.0 67 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/.gitignore: -------------------------------------------------------------------------------- 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 | .cxx/ 34 | 35 | # node.js 36 | # 37 | node_modules/ 38 | npm-debug.log 39 | yarn-error.log 40 | 41 | # BUCK 42 | buck-out/ 43 | \.buckd/ 44 | *.keystore 45 | !debug.keystore 46 | 47 | # fastlane 48 | # 49 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 50 | # screenshots whenever they are needed. 51 | # For more information about the recommended setup visit: 52 | # https://docs.fastlane.tools/best-practices/source-control/ 53 | 54 | **/fastlane/report.xml 55 | **/fastlane/Preview.html 56 | **/fastlane/screenshots 57 | **/fastlane/test_output 58 | 59 | # Bundle artifact 60 | *.jsbundle 61 | 62 | # Ruby / CocoaPods 63 | /ios/Pods/ 64 | /vendor/bundle/ 65 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | bracketSameLine: true, 4 | bracketSpacing: false, 5 | singleQuote: true, 6 | trailingComma: 'all', 7 | }; 8 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/.ruby-version: -------------------------------------------------------------------------------- 1 | 2.7.5 2 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /AnimatedSplashExample2/Gemfile: -------------------------------------------------------------------------------- 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' 7 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/_node-version: -------------------------------------------------------------------------------- 1 | 16 2 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/_BUCK: -------------------------------------------------------------------------------- 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.animatedsplashexample2", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.animatedsplashexample2", 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 | ) 56 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/debug.keystore -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/java/com/animatedsplashexample2/newarchitecture/components/MainComponentsRegistry.java: -------------------------------------------------------------------------------- 1 | package com.animatedsplashexample2.newarchitecture.components; 2 | 3 | import com.facebook.jni.HybridData; 4 | import com.facebook.proguard.annotations.DoNotStrip; 5 | import com.facebook.react.fabric.ComponentFactory; 6 | import com.facebook.soloader.SoLoader; 7 | 8 | /** 9 | * Class responsible to load the custom Fabric Components. This class has native methods and needs a 10 | * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ 11 | * folder for you). 12 | * 13 | *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the 14 | * `newArchEnabled` property). Is ignored otherwise. 15 | */ 16 | @DoNotStrip 17 | public class MainComponentsRegistry { 18 | static { 19 | SoLoader.loadLibrary("fabricjni"); 20 | } 21 | 22 | @DoNotStrip private final HybridData mHybridData; 23 | 24 | @DoNotStrip 25 | private native HybridData initHybrid(ComponentFactory componentFactory); 26 | 27 | @DoNotStrip 28 | private MainComponentsRegistry(ComponentFactory componentFactory) { 29 | mHybridData = initHybrid(componentFactory); 30 | } 31 | 32 | @DoNotStrip 33 | public static MainComponentsRegistry register(ComponentFactory componentFactory) { 34 | return new MainComponentsRegistry(componentFactory); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/java/com/animatedsplashexample2/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java: -------------------------------------------------------------------------------- 1 | package com.animatedsplashexample2.newarchitecture.modules; 2 | 3 | import com.facebook.jni.HybridData; 4 | import com.facebook.react.ReactPackage; 5 | import com.facebook.react.ReactPackageTurboModuleManagerDelegate; 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.soloader.SoLoader; 8 | import java.util.List; 9 | 10 | /** 11 | * Class responsible to load the TurboModules. This class has native methods and needs a 12 | * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ 13 | * folder for you). 14 | * 15 | *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the 16 | * `newArchEnabled` property). Is ignored otherwise. 17 | */ 18 | public class MainApplicationTurboModuleManagerDelegate 19 | extends ReactPackageTurboModuleManagerDelegate { 20 | 21 | private static volatile boolean sIsSoLibraryLoaded; 22 | 23 | protected MainApplicationTurboModuleManagerDelegate( 24 | ReactApplicationContext reactApplicationContext, List packages) { 25 | super(reactApplicationContext, packages); 26 | } 27 | 28 | protected native HybridData initHybrid(); 29 | 30 | native boolean canCreateTurboModule(String moduleName); 31 | 32 | public static class Builder extends ReactPackageTurboModuleManagerDelegate.Builder { 33 | protected MainApplicationTurboModuleManagerDelegate build( 34 | ReactApplicationContext context, List packages) { 35 | return new MainApplicationTurboModuleManagerDelegate(context, packages); 36 | } 37 | } 38 | 39 | @Override 40 | protected synchronized void maybeLoadOtherSoLibraries() { 41 | if (!sIsSoLibraryLoaded) { 42 | // If you change the name of your application .so file in the Android.mk file, 43 | // make sure you update the name here as well. 44 | SoLoader.loadLibrary("animatedsplashexample2_appmodules"); 45 | sIsSoLibraryLoaded = true; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/jni/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.13) 2 | 3 | # Define the library name here. 4 | project(animatedsplashexample2_appmodules) 5 | 6 | # This file includes all the necessary to let you build your application with the New Architecture. 7 | include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) 8 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/jni/MainApplicationModuleProvider.cpp: -------------------------------------------------------------------------------- 1 | #include "MainApplicationModuleProvider.h" 2 | 3 | #include 4 | #include 5 | 6 | namespace facebook { 7 | namespace react { 8 | 9 | std::shared_ptr MainApplicationModuleProvider( 10 | const std::string &moduleName, 11 | const JavaTurboModule::InitParams ¶ms) { 12 | // Here you can provide your own module provider for TurboModules coming from 13 | // either your application or from external libraries. The approach to follow 14 | // is similar to the following (for a library called `samplelibrary`: 15 | // 16 | // auto module = samplelibrary_ModuleProvider(moduleName, params); 17 | // if (module != nullptr) { 18 | // return module; 19 | // } 20 | // return rncore_ModuleProvider(moduleName, params); 21 | 22 | // Module providers autolinked by RN CLI 23 | auto rncli_module = rncli_ModuleProvider(moduleName, params); 24 | if (rncli_module != nullptr) { 25 | return rncli_module; 26 | } 27 | 28 | return rncore_ModuleProvider(moduleName, params); 29 | } 30 | 31 | } // namespace react 32 | } // namespace facebook 33 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/jni/MainApplicationModuleProvider.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | namespace facebook { 9 | namespace react { 10 | 11 | std::shared_ptr MainApplicationModuleProvider( 12 | const std::string &moduleName, 13 | const JavaTurboModule::InitParams ¶ms); 14 | 15 | } // namespace react 16 | } // namespace facebook 17 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp: -------------------------------------------------------------------------------- 1 | #include "MainApplicationTurboModuleManagerDelegate.h" 2 | #include "MainApplicationModuleProvider.h" 3 | 4 | namespace facebook { 5 | namespace react { 6 | 7 | jni::local_ref 8 | MainApplicationTurboModuleManagerDelegate::initHybrid( 9 | jni::alias_ref) { 10 | return makeCxxInstance(); 11 | } 12 | 13 | void MainApplicationTurboModuleManagerDelegate::registerNatives() { 14 | registerHybrid({ 15 | makeNativeMethod( 16 | "initHybrid", MainApplicationTurboModuleManagerDelegate::initHybrid), 17 | makeNativeMethod( 18 | "canCreateTurboModule", 19 | MainApplicationTurboModuleManagerDelegate::canCreateTurboModule), 20 | }); 21 | } 22 | 23 | std::shared_ptr 24 | MainApplicationTurboModuleManagerDelegate::getTurboModule( 25 | const std::string &name, 26 | const std::shared_ptr &jsInvoker) { 27 | // Not implemented yet: provide pure-C++ NativeModules here. 28 | return nullptr; 29 | } 30 | 31 | std::shared_ptr 32 | MainApplicationTurboModuleManagerDelegate::getTurboModule( 33 | const std::string &name, 34 | const JavaTurboModule::InitParams ¶ms) { 35 | return MainApplicationModuleProvider(name, params); 36 | } 37 | 38 | bool MainApplicationTurboModuleManagerDelegate::canCreateTurboModule( 39 | const std::string &name) { 40 | return getTurboModule(name, nullptr) != nullptr || 41 | getTurboModule(name, {.moduleName = name}) != nullptr; 42 | } 43 | 44 | } // namespace react 45 | } // namespace facebook 46 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | #include 6 | 7 | namespace facebook { 8 | namespace react { 9 | 10 | class MainApplicationTurboModuleManagerDelegate 11 | : public jni::HybridClass< 12 | MainApplicationTurboModuleManagerDelegate, 13 | TurboModuleManagerDelegate> { 14 | public: 15 | // Adapt it to the package you used for your Java class. 16 | static constexpr auto kJavaDescriptor = 17 | "Lcom/animatedsplashexample2/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;"; 18 | 19 | static jni::local_ref initHybrid(jni::alias_ref); 20 | 21 | static void registerNatives(); 22 | 23 | std::shared_ptr getTurboModule( 24 | const std::string &name, 25 | const std::shared_ptr &jsInvoker) override; 26 | std::shared_ptr getTurboModule( 27 | const std::string &name, 28 | const JavaTurboModule::InitParams ¶ms) override; 29 | 30 | /** 31 | * Test-only method. Allows user to verify whether a TurboModule can be 32 | * created by instances of this class. 33 | */ 34 | bool canCreateTurboModule(const std::string &name); 35 | }; 36 | 37 | } // namespace react 38 | } // namespace facebook 39 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/jni/MainComponentsRegistry.cpp: -------------------------------------------------------------------------------- 1 | #include "MainComponentsRegistry.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | namespace facebook { 10 | namespace react { 11 | 12 | MainComponentsRegistry::MainComponentsRegistry(ComponentFactory *delegate) {} 13 | 14 | std::shared_ptr 15 | MainComponentsRegistry::sharedProviderRegistry() { 16 | auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry(); 17 | 18 | // Autolinked providers registered by RN CLI 19 | rncli_registerProviders(providerRegistry); 20 | 21 | // Custom Fabric Components go here. You can register custom 22 | // components coming from your App or from 3rd party libraries here. 23 | // 24 | // providerRegistry->add(concreteComponentDescriptorProvider< 25 | // AocViewerComponentDescriptor>()); 26 | return providerRegistry; 27 | } 28 | 29 | jni::local_ref 30 | MainComponentsRegistry::initHybrid( 31 | jni::alias_ref, 32 | ComponentFactory *delegate) { 33 | auto instance = makeCxxInstance(delegate); 34 | 35 | auto buildRegistryFunction = 36 | [](EventDispatcher::Weak const &eventDispatcher, 37 | ContextContainer::Shared const &contextContainer) 38 | -> ComponentDescriptorRegistry::Shared { 39 | auto registry = MainComponentsRegistry::sharedProviderRegistry() 40 | ->createComponentDescriptorRegistry( 41 | {eventDispatcher, contextContainer}); 42 | 43 | auto mutableRegistry = 44 | std::const_pointer_cast(registry); 45 | 46 | mutableRegistry->setFallbackComponentDescriptor( 47 | std::make_shared( 48 | ComponentDescriptorParameters{ 49 | eventDispatcher, contextContainer, nullptr})); 50 | 51 | return registry; 52 | }; 53 | 54 | delegate->buildRegistryFunction = buildRegistryFunction; 55 | return instance; 56 | } 57 | 58 | void MainComponentsRegistry::registerNatives() { 59 | registerHybrid({ 60 | makeNativeMethod("initHybrid", MainComponentsRegistry::initHybrid), 61 | }); 62 | } 63 | 64 | } // namespace react 65 | } // namespace facebook 66 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/jni/MainComponentsRegistry.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace facebook { 9 | namespace react { 10 | 11 | class MainComponentsRegistry 12 | : public facebook::jni::HybridClass { 13 | public: 14 | // Adapt it to the package you used for your Java class. 15 | constexpr static auto kJavaDescriptor = 16 | "Lcom/animatedsplashexample2/newarchitecture/components/MainComponentsRegistry;"; 17 | 18 | static void registerNatives(); 19 | 20 | MainComponentsRegistry(ComponentFactory *delegate); 21 | 22 | private: 23 | static std::shared_ptr 24 | sharedProviderRegistry(); 25 | 26 | static jni::local_ref initHybrid( 27 | jni::alias_ref, 28 | ComponentFactory *delegate); 29 | }; 30 | 31 | } // namespace react 32 | } // namespace facebook 33 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/jni/OnLoad.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "MainApplicationTurboModuleManagerDelegate.h" 3 | #include "MainComponentsRegistry.h" 4 | 5 | JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) { 6 | return facebook::jni::initialize(vm, [] { 7 | facebook::react::MainApplicationTurboModuleManagerDelegate:: 8 | registerNatives(); 9 | facebook::react::MainComponentsRegistry::registerNatives(); 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/drawable/footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/drawable/footer.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/drawable/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/drawable/header.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/drawable/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/drawable/logo2.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/drawable/splashbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/drawable/splashbg.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #10C2CF 4 | #101010 5 | 6 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | exampleproject2 3 | 4 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "31.0.0" 6 | minSdkVersion = 21 7 | compileSdkVersion = 31 8 | targetSdkVersion = 31 9 | 10 | if (System.properties['os.arch'] == "aarch64") { 11 | // For M1 Users we need to use the NDK 24 which added support for aarch64 12 | ndkVersion = "24.0.8215888" 13 | } else { 14 | // Otherwise we default to the side-by-side NDK version from AGP. 15 | ndkVersion = "21.4.7075529" 16 | } 17 | } 18 | repositories { 19 | google() 20 | mavenCentral() 21 | } 22 | dependencies { 23 | classpath("com.android.tools.build:gradle:7.2.1") 24 | classpath("com.facebook.react:react-native-gradle-plugin") 25 | classpath("de.undercouch:gradle-download-task:5.0.1") 26 | // NOTE: Do not place your application dependencies here; they belong 27 | // in the individual module build.gradle files 28 | } 29 | } 30 | 31 | allprojects { 32 | repositories { 33 | maven { 34 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 35 | url("$rootDir/../node_modules/react-native/android") 36 | } 37 | maven { 38 | // Android JSC is installed from npm 39 | url("$rootDir/../node_modules/jsc-android/dist") 40 | } 41 | mavenCentral { 42 | // We don't want to fetch react-native from Maven Central as there are 43 | // older versions over there. 44 | content { 45 | excludeGroup "com.facebook.react" 46 | } 47 | } 48 | google() 49 | maven { url 'https://www.jitpack.io' } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.125.0 29 | 30 | # Use this property to specify which architecture you want to build. 31 | # You can also override it from the CLI using 32 | # ./gradlew -PreactNativeArchitectures=x86_64 33 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 34 | 35 | # Use this property to enable support to the new architecture. 36 | # This will allow you to use TurboModules and the Fabric render in 37 | # your application. You should enable this flag either if you want 38 | # to write custom TurboModules/Fabric components OR use libraries that 39 | # are providing them. 40 | newArchEnabled=false 41 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'AnimatedSplashExample2' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | includeBuild('../node_modules/react-native-gradle-plugin') 5 | 6 | if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { 7 | include(":ReactAndroid") 8 | project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid') 9 | include(":ReactAndroid:hermes-engine") 10 | project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') 11 | } 12 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AnimatedSplashExample2", 3 | "displayName": "AnimatedSplashExample2" 4 | } -------------------------------------------------------------------------------- /AnimatedSplashExample2/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | @class Splash; 6 | #import 7 | @class GroupAnimation; 8 | #import 9 | @class SingleAnimation; 10 | #import 11 | @class HideGroupAnimation; 12 | #import 13 | @class HideSingleAnimation; 14 | #import 15 | @class ObjectAnimation; 16 | 17 | 18 | @interface AppDelegate : UIResponder 19 | 20 | @property (nonatomic, strong) UIWindow *window; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/120-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/120-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/120.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/180.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/40.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/58.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/60.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/80.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/87.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "40.png", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "60.png", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "58.png", 17 | "idiom" : "iphone", 18 | "scale" : "2x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "87.png", 23 | "idiom" : "iphone", 24 | "scale" : "3x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "80.png", 29 | "idiom" : "iphone", 30 | "scale" : "2x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "filename" : "120.png", 35 | "idiom" : "iphone", 36 | "scale" : "3x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "120-1.png", 41 | "idiom" : "iphone", 42 | "scale" : "2x", 43 | "size" : "60x60" 44 | }, 45 | { 46 | "filename" : "180.png", 47 | "idiom" : "iphone", 48 | "scale" : "3x", 49 | "size" : "60x60" 50 | }, 51 | { 52 | "filename" : "1024.png", 53 | "idiom" : "ios-marketing", 54 | "scale" : "1x", 55 | "size" : "1024x1024" 56 | } 57 | ], 58 | "info" : { 59 | "author" : "xcode", 60 | "version" : 1 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/footer.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "footer.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "footer-1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "footer-2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/footer.imageset/footer-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/footer.imageset/footer-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/footer.imageset/footer-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/footer.imageset/footer-2.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/footer.imageset/footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/footer.imageset/footer.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/header.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "header.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "header-1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "header-2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/header.imageset/header-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/header.imageset/header-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/header.imageset/header-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/header.imageset/header-2.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/header.imageset/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/header.imageset/header.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/logo2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "logo2.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "logo2-1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "logo2-2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/logo2.imageset/logo2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/logo2.imageset/logo2-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/logo2.imageset/logo2-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/logo2.imageset/logo2-2.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/logo2.imageset/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/logo2.imageset/logo2.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/splashBg.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "splashbg.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "splashbg-1.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "splashbg-2.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/splashBg.imageset/splashbg-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/splashBg.imageset/splashbg-1.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/splashBg.imageset/splashbg-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/splashBg.imageset/splashbg-2.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/splashBg.imageset/splashbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/ios/AnimatedSplashExample2/Images.xcassets/splashBg.imageset/splashbg.png -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | AnimatedSplashExample2 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2Tests/AnimatedSplashExample2Tests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface AnimatedSplashExample2Tests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation AnimatedSplashExample2Tests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction( 38 | ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 39 | if (level >= RCTLogLevelError) { 40 | redboxError = message; 41 | } 42 | }); 43 | #endif 44 | 45 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 46 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 48 | 49 | foundElement = [self findSubviewInView:vc.view 50 | matching:^BOOL(UIView *view) { 51 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 52 | return YES; 53 | } 54 | return NO; 55 | }]; 56 | } 57 | 58 | #ifdef DEBUG 59 | RCTSetLogFunction(RCTDefaultLogFunction); 60 | #endif 61 | 62 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 63 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 64 | } 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/AnimatedSplashExample2Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '15.5' 5 | install! 'cocoapods', :deterministic_uuids => false 6 | 7 | target 'AnimatedSplashExample2' do 8 | config = use_native_modules! 9 | 10 | # Flags change depending on the env values. 11 | flags = get_default_flags() 12 | 13 | use_react_native!( 14 | :path => config[:reactNativePath], 15 | # Hermes is now enabled by default. Disable by setting this flag to false. 16 | # Upcoming versions of React Native may rely on get_default_flags(), but 17 | # we make it explicit here to aid in the React Native upgrade process. 18 | :hermes_enabled => true, 19 | :fabric_enabled => flags[:fabric_enabled], 20 | # Enables Flipper. 21 | # 22 | # Note that if you have use_frameworks! enabled, Flipper will not work and 23 | # you should disable the next line. 24 | :flipper_configuration => FlipperConfiguration.enabled, 25 | # An absolute path to your application root. 26 | :app_path => "#{Pod::Config.instance.installation_root}/.." 27 | ) 28 | 29 | target 'AnimatedSplashExample2Tests' do 30 | inherit! :complete 31 | # Pods for testing 32 | end 33 | 34 | post_install do |installer| 35 | react_native_post_install( 36 | installer, 37 | # Set `mac_catalyst_enabled` to `true` in order to apply patches 38 | # necessary for Mac Catalyst builds 39 | :mac_catalyst_enabled => false 40 | ) 41 | __apply_Xcode_12_5_M1_post_install_workaround(installer) 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/ios/_xcode.env: -------------------------------------------------------------------------------- 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) 12 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "animatedsplashexample2", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "react": "18.1.0", 14 | "react-native": "0.70.0", 15 | "react-native-animated-splash": "^1.3.8" 16 | }, 17 | "devDependencies": { 18 | "@babel/core": "^7.12.9", 19 | "@babel/runtime": "^7.12.5", 20 | "@react-native-community/eslint-config": "^2.0.0", 21 | "babel-jest": "^26.6.3", 22 | "eslint": "^7.32.0", 23 | "jest": "^26.6.3", 24 | "metro-react-native-babel-preset": "^0.72.1", 25 | "react-test-renderer": "18.1.0" 26 | }, 27 | "jest": { 28 | "preset": "react-native" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /AnimatedSplashExample2/src/assets/images/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/AnimatedSplashExample2/src/assets/images/logo2.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Blitz HQ 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. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [react-native-animated-splash](https://www.npmjs.com/package/react-native-animated-splash) 2 | [![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger) 3 | ![Supports Android and iOS](https://img.shields.io/badge/platforms-android%20|%20ios-lightgrey.svg?style=flat-square) 4 | [![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org) 5 | [![NPM](https://img.shields.io/npm/dm/react-native-animated-splash)](https://www.npmjs.com/package/react-native-animated-splash) 6 | [![Version](https://img.shields.io/npm/v/react-native-animated-splash)](https://www.npmjs.com/package/react-native-animated-splash) 7 | 8 | 9 | React-Native-Animated-Splash is developed to help the react-native developers in speeding-up their development process. This package leverages the developer in implementing native animations by using our builtin classes for animation with easy to use api, all the animations run on native thread for smooth performance. 10 | ##### Objective 11 | The main objective or the edge of this module is that, splash animation runs in parallel with loading of javascript, which means when animation is running, javascript is being loaded in parallel behind the scenes, moreover componentDidMount can also be called for any api hits before calling hide function of splash from react-native side. 12 | 13 | ### For iOS and Android 14 | 15 | ### Installation 16 | If you prefer **npm**, 17 | ```sh 18 | $ npm install react-native-animated-splash --save 19 | ``` 20 | 21 | If you prefer **yarn**, 22 | ```sh 23 | $ yarn add react-native-animated-splash 24 | ``` 25 | #### For Ios bump deployment version to 12.0+ in Xcode and podfile 26 | 27 | ```sh 28 | platform :ios, '12.0' 29 | ``` 30 | 31 | #### Also add this line in your podfile 32 | 33 | ```sh 34 | pod 'RNAnimatedSplash', :path => '../node_modules/react-native-animated-splash' 35 | ``` 36 | 37 | #### Android Usage with Method Descriptions [Here](https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/blob/v2/androidDescription.md) 38 | ### Android Examples 39 | #### Check Android Example Code [Here](https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/blob/v2/androidexample.md) 40 | ![](https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/blob/master/example1.gif?raw=true) 41 | ![](https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/blob/master/example2.gif?raw=true) 42 | > 43 | > 44 | #### iOS Usage with Method Descriptions [Here](https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/blob/v2/iosDescription.md) 45 | ### Ios Examples 46 | #### Check iOS Example Code [Here](https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/blob/v2/iosexample.md) 47 | ![](https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/blob/master/example1ios.gif?raw=true) 48 | ![](https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/blob/master/example2ios.gif?raw=true) 49 | 50 | 51 | 52 | 53 | License 54 | MIT 55 | -------------------------------------------------------------------------------- /RNAnimatedSplash.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = "RNAnimatedSplash" 4 | s.version = "1.0.4" 5 | s.summary = "RNAnimatedSplash" 6 | s.description = <<-DESC 7 | RNAnimatedSplash 8 | DESC 9 | s.homepage = "https://github.com/Blitz-Mobile-Apps/react-native-animated-splash" 10 | s.license = "MIT" 11 | # s.license = { :type => "MIT", :file => "FILE_LICENSE" } 12 | s.author = { "author" => "alisajames048@gmail.com" } 13 | s.platform = :ios, "12.0" 14 | s.source = { :git => "https://github.com/Blitz-Mobile-Apps/react-native-animated-splash.git", :tag => "master" } 15 | s.source_files = "ios/**/*.{h,m}" 16 | s.requires_arc = true 17 | 18 | 19 | s.dependency "React" 20 | 21 | 22 | #s.dependency "others" 23 | 24 | end 25 | 26 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | Use this section to tell people about which versions of your project are 6 | currently being supported with security updates. 7 | 8 | | Version | Supported | 9 | | ------- | ------------------ | 10 | | 5.1.x | :white_check_mark: | 11 | | 5.0.x | :x: | 12 | | 4.0.x | :white_check_mark: | 13 | | < 4.0 | :x: | 14 | 15 | ## Reporting a Vulnerability 16 | 17 | Use this section to tell people how to report a vulnerability. 18 | 19 | Tell them where to go, how often they can expect to get an update on a 20 | reported vulnerability, what to expect if the vulnerability is accepted or 21 | declined, etc. 22 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | } 10 | } 11 | 12 | apply plugin: 'com.android.library' 13 | 14 | android { 15 | compileSdkVersion 28 16 | buildToolsVersion "28.0.3" 17 | 18 | defaultConfig { 19 | minSdkVersion 16 20 | targetSdkVersion 28 21 | versionCode 138 22 | versionName "1.3.8" 23 | } 24 | lintOptions { 25 | abortOnError false 26 | } 27 | } 28 | 29 | repositories { 30 | mavenCentral() 31 | } 32 | 33 | dependencies { 34 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 35 | implementation 'com.facebook.react:react-native:+' 36 | } 37 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Sep 06 18:10:56 PKT 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/AnimationsList.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash; 2 | 3 | import com.blitzapp.animatedsplash.animation.AnimatedObject; 4 | import com.blitzapp.animatedsplash.animation.ObjectAnimation; 5 | 6 | import java.util.HashMap; 7 | import java.util.UUID; 8 | 9 | public class AnimationsList { 10 | 11 | public static HashMap animationsList = new HashMap<>(); 12 | public static String animationListTail = null; 13 | public static String animationListHead = null; 14 | 15 | public static void appendInAnimationList(ObjectAnimation object){ 16 | String uniqueID = UUID.randomUUID().toString(); 17 | if(animationsList.isEmpty()){ 18 | animationListHead = uniqueID; 19 | }else{ 20 | animationsList.get(animationListTail).setNext(uniqueID); 21 | } 22 | animationsList.put(uniqueID,object); 23 | animationListTail = uniqueID; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/HideAnimationList.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash; 2 | 3 | import com.blitzapp.animatedsplash.animation.AnimatedObject; 4 | import com.blitzapp.animatedsplash.animation.ObjectAnimation; 5 | 6 | import java.util.HashMap; 7 | import java.util.UUID; 8 | 9 | public class HideAnimationList { 10 | public static HashMap hideAnimationsList = new HashMap<>(); 11 | public static String hideAnimationListTail = null; 12 | public static String hideAnimationListHead = null; 13 | 14 | public static void appendInAnimationList(ObjectAnimation object){ 15 | String uniqueID = UUID.randomUUID().toString(); 16 | if(hideAnimationsList.isEmpty()){ 17 | hideAnimationListHead = uniqueID; 18 | }else{ 19 | hideAnimationsList.get(hideAnimationListTail).setHideNext(uniqueID); 20 | } 21 | hideAnimationsList.put(uniqueID,object); 22 | hideAnimationListTail = uniqueID; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/ListItem.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash; 2 | 3 | public class ListItem { 4 | private String next = null; 5 | 6 | } 7 | -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/RNAnimatedSplashModule.java: -------------------------------------------------------------------------------- 1 | 2 | package com.blitzapp.animatedsplash; 3 | 4 | import com.blitzapp.animatedsplash.animation.Splash; 5 | import com.facebook.react.bridge.ReactApplicationContext; 6 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 7 | import com.facebook.react.bridge.ReactMethod; 8 | 9 | public class RNAnimatedSplashModule extends ReactContextBaseJavaModule { 10 | 11 | public static ReactApplicationContext reactContext; 12 | 13 | public RNAnimatedSplashModule(ReactApplicationContext rc) { 14 | super(rc); 15 | reactContext = rc; 16 | } 17 | 18 | @ReactMethod 19 | public void hide(){ 20 | Splash.hide(); 21 | 22 | } 23 | 24 | @Override 25 | public String getName() { 26 | return "RNAnimatedSplash"; 27 | } 28 | } -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/RNAnimatedSplashPackage.java: -------------------------------------------------------------------------------- 1 | 2 | package com.blitzapp.animatedsplash; 3 | 4 | import java.util.Arrays; 5 | import java.util.Collections; 6 | import java.util.List; 7 | 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.bridge.NativeModule; 10 | import com.facebook.react.bridge.ReactApplicationContext; 11 | import com.facebook.react.uimanager.ViewManager; 12 | import com.facebook.react.bridge.JavaScriptModule; 13 | public class RNAnimatedSplashPackage implements ReactPackage { 14 | @Override 15 | public List createNativeModules(ReactApplicationContext reactContext) { 16 | return Arrays.asList(new RNAnimatedSplashModule(reactContext)); 17 | } 18 | 19 | // Deprecated from RN 0.47 20 | public List> createJSModules() { 21 | return Collections.emptyList(); 22 | } 23 | 24 | @Override 25 | public List createViewManagers(ReactApplicationContext reactContext) { 26 | return Collections.emptyList(); 27 | } 28 | } -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/animation/Constants.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash.animation; 2 | 3 | public class Constants { 4 | public static final String TAG = "ANIMATED_SPLASH"; 5 | public static final String SLIDE = "SLIDE_ANIMATION"; 6 | public static final String ROTATE = "ROTATE_ANIMATION"; 7 | public static final String SCALE = "SCALE_ANIMATION"; 8 | public static final String FADE = "FADE_ANIMATION"; 9 | public static final String SPLASH_SLIDE_DOWN = "SLIDEDOWN"; 10 | public static final String SPLASH_SLIDE_LEFT = "SLIDELEFT"; 11 | public static final String SPLASH_SLIDE_RIGHT = "SLIDERIGHT"; 12 | public static final String SPLASH_FADE = "FADE"; 13 | public static final String SINGLE = "SINGLE"; 14 | public static final String GROUP = "GROUP"; 15 | } 16 | -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/animation/GroupAnimation.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash.animation; 2 | 3 | 4 | import static com.blitzapp.animatedsplash.animation.Constants.GROUP; 5 | import static com.blitzapp.animatedsplash.animation.Splash.animatedObjectList; 6 | 7 | import com.blitzapp.animatedsplash.AnimationsList; 8 | 9 | import java.util.ArrayList; 10 | import java.util.List; 11 | 12 | public class GroupAnimation { 13 | 14 | public String type = GROUP; 15 | public int priority = 0; 16 | private List group = new ArrayList<>(); 17 | 18 | public GroupAnimation(int priority) { 19 | this.priority = priority; 20 | } 21 | 22 | public void addAnimation(ObjectAnimation object){ 23 | object.priority = priority; 24 | AnimationsList.appendInAnimationList(object); 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/animation/HideGroupAnimation.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash.animation; 2 | 3 | 4 | import android.util.Log; 5 | import android.view.View; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | import static android.content.ContentValues.TAG; 11 | import static com.blitzapp.animatedsplash.animation.Constants.GROUP; 12 | 13 | import com.blitzapp.animatedsplash.AnimationsList; 14 | import com.blitzapp.animatedsplash.HideAnimationList; 15 | 16 | public class HideGroupAnimation { 17 | public String type = GROUP; 18 | public int priority = 0; 19 | private List group = new ArrayList<>(); 20 | 21 | public HideGroupAnimation(int priority) { 22 | this.priority = priority; 23 | } 24 | 25 | public void addAnimation(ObjectAnimation object){ 26 | object.hidePriority = priority; 27 | HideAnimationList.appendInAnimationList(object); 28 | } 29 | } -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/animation/HideSingleAnimation.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash.animation; 2 | 3 | import static com.blitzapp.animatedsplash.animation.Constants.SINGLE; 4 | 5 | import com.blitzapp.animatedsplash.AnimationsList; 6 | import com.blitzapp.animatedsplash.HideAnimationList; 7 | 8 | public class HideSingleAnimation { 9 | 10 | public String type = SINGLE; 11 | public int priority = 0; 12 | public HideSingleAnimation(ObjectAnimation object,int priority) { 13 | object.hidePriority = priority; 14 | HideAnimationList.appendInAnimationList(object); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/animation/NoAnimationException.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash.animation; 2 | 3 | public class NoAnimationException extends Exception { 4 | public NoAnimationException(String message) { 5 | super(message); 6 | } 7 | 8 | 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /android/src/main/java/com/blitzapp/animatedsplash/animation/SingleAnimation.java: -------------------------------------------------------------------------------- 1 | package com.blitzapp.animatedsplash.animation; 2 | 3 | import static com.blitzapp.animatedsplash.AnimationsList.animationsList; 4 | import static com.blitzapp.animatedsplash.animation.Constants.SINGLE; 5 | import static com.blitzapp.animatedsplash.animation.Splash.animatedObjectList; 6 | import static com.blitzapp.animatedsplash.animation.Splash.priority; 7 | 8 | import com.blitzapp.animatedsplash.AnimationsList; 9 | import com.blitzapp.animatedsplash.ListItem; 10 | 11 | import java.util.ArrayList; 12 | import java.util.List; 13 | 14 | 15 | public class SingleAnimation { 16 | 17 | public String type = SINGLE; 18 | public int priority = 0; 19 | public SingleAnimation(ObjectAnimation object,int priority) { 20 | object.priority = priority; 21 | AnimationsList.appendInAnimationList(object); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android/src/main/res/anim/faday.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | -------------------------------------------------------------------------------- /android/src/main/res/anim/fadein_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /android/src/main/res/anim/fadeout_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /android/src/main/res/anim/flip_animation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 15 | 16 | 22 | 23 | -------------------------------------------------------------------------------- /android/src/main/res/anim/slide_down.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /android/src/main/res/anim/slide_left.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /android/src/main/res/anim/slide_right.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /android/src/main/res/anim/slide_up.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 13 | 16 | 19 | 22 | 25 | -------------------------------------------------------------------------------- /example1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/example1.gif -------------------------------------------------------------------------------- /example1ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/example1ios.gif -------------------------------------------------------------------------------- /example2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/example2.gif -------------------------------------------------------------------------------- /example2ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blitz-Mobile-Apps/react-native-animated-splash/9c537d60f80395ca463cf46a58015213dc8332c3/example2ios.gif -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 2 | import { NativeModules } from 'react-native'; 3 | const { RNAnimatedSplash } = NativeModules; 4 | const AnimatedSplash = { 5 | hide:()=>{ 6 | if(RNAnimatedSplash.hide){ 7 | RNAnimatedSplash.hide() 8 | } 9 | } 10 | } 11 | 12 | export default AnimatedSplash -------------------------------------------------------------------------------- /ios/Animation/AddImageView.h: -------------------------------------------------------------------------------- 1 | //// 2 | //// AddImageView.h 3 | //// splashmoduleios 4 | //// 5 | //// Created by Smith Charles on 21/09/2020. 6 | //// 7 | //#import "AddImageView.h" 8 | //#import "Splash.h" 9 | //#import 10 | //#import 11 | //@class Splash; 12 | //#import 13 | // 14 | //NS_ASSUME_NONNULL_BEGIN 15 | // 16 | //@interface AddImageView : NSObject 17 | // 18 | // 19 | //@property (nonatomic, strong) NSString *imagename; 20 | //@property (nonatomic) int thisheight; 21 | //@property (nonatomic) int thiswidth; 22 | //@property (nonatomic) float thispositionX; 23 | //@property (nonatomic) float thispositionY; 24 | //@property (nonatomic) bool thisvisibility; 25 | //@property (nonatomic) int thisscaleType; 26 | //@property (nonatomic) float thisrotateDegree; 27 | //@property (nonatomic) float thisopacity; 28 | //@property (nonatomic, strong) UIImageView *imageobject; 29 | // 30 | // 31 | //-(instancetype) init; 32 | //-(instancetype) initImage:(NSString *)image width:(CGFloat)width height:(CGFloat)height; 33 | //-(instancetype) initImage:(NSString *)image width:(CGFloat)width height:(CGFloat)height positionX:(CGFloat)positionX positionY:(CGFloat)positionY; 34 | //-(instancetype)initImage:(NSString *)image width:(CGFloat)width height:(CGFloat)height positionX:(CGFloat)positionX positionY:(CGFloat)positionY visibility:(bool)visibility; 35 | //-(instancetype)initImage:(NSString *)image width:(CGFloat)width height:(CGFloat)height positionX:(CGFloat)positionX positionY:(CGFloat)positionY visibility:(bool)visibility scaleType:(int)scaleType; 36 | //-(instancetype)initImage:(NSString *)image width:(CGFloat)width height:(CGFloat)height positionX:(CGFloat)positionX positionY:(CGFloat)positionY visibility:(bool)visibility scaleType:(int)scaleType opacity:(float)opacity; 37 | //-(instancetype)initImage:(NSString *)image width:(CGFloat)width height:(CGFloat)height positionX:(CGFloat)positionX positionY:(CGFloat)positionY visibility:(bool)visibility scaleType:(int)scaleType opacity:(float)opacity rotateDegree:(float)rotateDegree; 38 | //-(UIImageView *) initializeObject; 39 | // 40 | //-(UIImageView *)getImageView; 41 | //@end 42 | // 43 | //NS_ASSUME_NONNULL_END 44 | -------------------------------------------------------------------------------- /ios/Animation/AnimateObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnimateObject.h 3 | // splashmoduleios 4 | // 5 | // Created by Smith Charles on 21/09/2020. 6 | // 7 | 8 | #import 9 | #import 10 | #import "AnimatedObject.h" 11 | #import "Splash.h" 12 | @class Splash; 13 | @class AnimatedObject; 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @interface AnimateObject : NSObject 17 | @property (nonatomic, strong) Splash *splash; 18 | @property (nonatomic, strong) AnimatedObject *imageview; 19 | @property (nonatomic) CGFloat fromXDelta; 20 | @property (nonatomic) CGFloat fromYDelta; 21 | @property (nonatomic) CGFloat fromValue; 22 | @property (nonatomic) CGFloat toXDelta; 23 | @property (nonatomic) CGFloat toYDelta; 24 | @property (nonatomic) CGFloat toValue; 25 | @property (nonatomic) CGFloat scaleX; 26 | @property (nonatomic) CGFloat scaleY; 27 | @property (nonatomic) int animationType; 28 | @property (nonatomic) bool isLoop; 29 | @property (nonatomic) float animationDuration; 30 | @property (nonatomic) int priority; 31 | 32 | 33 | -(id)initimage:(AnimatedObject *)image animationType:(int)animationtype duration:(float)animationDuration fromX:(CGFloat)fromX toX:(CGFloat)toX fromY:(CGFloat)fromY toY:(CGFloat)toY :(int)priority; 34 | -(id)initimage:(AnimatedObject *)image :(int) animationtype :(float)animationDuration fromVal:(CGFloat)fromVal toVal:(CGFloat)toVal :(int)priority; 35 | -(id)initimage:(AnimatedObject *)image :(int) animationtype :(float)animationDuration fromVal:(CGFloat)fromVal toVal:(CGFloat)toVal loop:(bool)isLoop :(int)priority; 36 | -(id)initimage:(AnimatedObject *)image :(int) animationtype :(float)animationDuration scaleX:(CGFloat)fromVal scaleY:(CGFloat)toVal :(int)priority; 37 | -(id)initimage:(AnimatedObject *)image :(int) animationtype :(float)animationDuration scaleX:(CGFloat)fromVal scaleY:(CGFloat)toVal loop:(bool)isLoop :(int)priority; 38 | -(id)initimage:(AnimatedObject *)image animationType:(int)animationtype duration:(float)animationDuration fromX:(CGFloat)fromX toX:(CGFloat)toX fromY:(CGFloat)fromY toY:(CGFloat)toY loop:(bool)isLoop :(int)priority; 39 | 40 | //Animations 41 | -(void)slideAnimation:(AnimatedObject *)imageobject :(AnimatedObject *)nextObject; 42 | -(void)scaleAnimation:(AnimatedObject *)imageobject :(AnimatedObject *)nextObject; 43 | -(void)rotateAnimation:(AnimatedObject *)imageobject :(AnimatedObject *)nextObject; 44 | -(void)fadeAnimation:(AnimatedObject *)imageobject :(AnimatedObject *)nextObject; 45 | 46 | //Animations With Loop 47 | -(void)slideAnimation:(AnimatedObject *)imageobject :(AnimatedObject *)nextObject :(bool)isLoop; 48 | -(void)scaleAnimation:(AnimatedObject *)imageobject :(AnimatedObject *)nextObject :(bool)isLoop; 49 | -(void)rotateAnimation:(AnimatedObject *)imageobject :(AnimatedObject *)nextObject :(bool)isLoop; 50 | -(void)fadeAnimation:(AnimatedObject *)imageobject :(AnimatedObject *)nextObject :(bool)isLoop; 51 | 52 | //Adding Hiding Animations 53 | 54 | -(AnimatedObject *)getObject; 55 | -(int)getAnimationtype; 56 | -(int)getPriority; 57 | -(bool)getisLoop; 58 | @end 59 | 60 | NS_ASSUME_NONNULL_END 61 | -------------------------------------------------------------------------------- /ios/Animation/AnimationsList.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnimationsList.h 3 | // Pods 4 | // 5 | // Created by Ethan Gray on 8/23/22. 6 | // 7 | 8 | #import "AnimationsList.h" 9 | #import 10 | #import "ObjectAnimation.h" 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface AnimationsList : NSObject 14 | 15 | +(void) appendInAnimationList:(ObjectAnimation*) object; 16 | +(ObjectAnimation *) getItem:(NSString*) key; 17 | +(NSString*) getHead; 18 | +(void) initializeDictionary; 19 | +(int) getLength; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | 25 | -------------------------------------------------------------------------------- /ios/Animation/AnimationsList.m: -------------------------------------------------------------------------------- 1 | // 2 | // AnimationsList.m 3 | // RNAnimatedSplash 4 | // 5 | // Created by Ethan Gray on 8/23/22. 6 | // 7 | 8 | // 9 | // HideGroupAnimation.m 10 | // splashmoduleios 11 | // 12 | // Created by Smith Charles on 29/09/2020. 13 | // 14 | 15 | #import "AnimationsList.h" 16 | #import "ObjectAnimation.h" 17 | @class ObjectAnimation; 18 | @implementation AnimationsList 19 | 20 | static NSMutableDictionary *animationsList; 21 | 22 | static NSString *animationListHead = NULL; 23 | static NSString *animationListTail = NULL; 24 | 25 | +(void) initializeDictionary{ 26 | animationsList = [[NSMutableDictionary alloc] init]; 27 | } 28 | 29 | +(void) appendInAnimationList:(ObjectAnimation*) object{ 30 | 31 | NSUUID *uuid = [NSUUID UUID]; 32 | NSString *str = [uuid UUIDString]; 33 | 34 | if([animationsList count] == 0){ 35 | animationListHead = str; 36 | } 37 | 38 | [animationsList setObject:object forKey:str]; 39 | animationsList[animationListTail].next = str; 40 | animationListTail = str; 41 | animationsList[str] = object; 42 | 43 | } 44 | 45 | +(ObjectAnimation*) getItem:(NSString*) key{ 46 | return animationsList[key]; 47 | } 48 | 49 | +(NSString*) getHead{ 50 | return animationListHead; 51 | } 52 | 53 | +(int) getLength{ 54 | return [animationsList count]; 55 | } 56 | @end 57 | 58 | // 59 | //#import "AnimationsList.h" 60 | //#import 61 | //#import "AnimatedObject.h" 62 | //@class AnimatedObject; 63 | // 64 | //@implementation AnimationsList 65 | // 66 | //static NSDictionary *animationsList; 67 | //static NSString *animationListHead = NULL; 68 | //static NSString *animationListTail = NULL; 69 | // 70 | ////public static void appendInAnimationList(AnimatedObject object){ 71 | //// String uniqueID = UUID.randomUUID().toString(); 72 | //// if(animationsList.isEmpty()){ 73 | //// animationListHead = uniqueID; 74 | //// }else{ 75 | //// animationsList.get(animationListTail).setNext(uniqueID); 76 | //// } 77 | //// animationsList.put(uniqueID,object); 78 | //// animationListTail = uniqueID; 79 | //// object.setNext(null); 80 | //// } 81 | //+(void) appendInAnimationList:(AnimatedObject*) object{ 82 | // NSUUID *uuid = [NSUUID UUID]; 83 | // NSString *str = [uuid UUIDString]; 84 | // 85 | // if([animationsList count] == 0){ 86 | // animationListHead = str; 87 | // } 88 | // [animationsList setValue:object forKey:str]; 89 | // animationListTail = str; 90 | // [object setNext:str]; 91 | // 92 | // 93 | //} 94 | // 95 | // 96 | //@end 97 | // 98 | // 99 | -------------------------------------------------------------------------------- /ios/Animation/GroupAnimation.h: -------------------------------------------------------------------------------- 1 | // 2 | // GroupAnimation.h 3 | // splashmoduleios 4 | // 5 | // Created by Smith Charles on 22/09/2020. 6 | // 7 | #import 8 | #import 9 | #import "AddImageView.h" 10 | @class AddImageView; 11 | #import 12 | #import "Splash.h" 13 | @class Splash; 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @interface GroupAnimation : NSObject 17 | 18 | @property (nonatomic) int priority; 19 | 20 | 21 | -(instancetype) init:(int)priority;\ 22 | 23 | -(void)addAnimation:(ObjectAnimation*)object; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /ios/Animation/GroupAnimation.m: -------------------------------------------------------------------------------- 1 | // 2 | // GroupAnimation.m 3 | // splashmoduleios 4 | // 5 | // Created by Smith Charles on 22/09/2020. 6 | // 7 | 8 | #import "GroupAnimation.h" 9 | #import "AnimationsList.h" 10 | #import "Splash.h" 11 | 12 | @implementation GroupAnimation 13 | 14 | -(instancetype)init:(int)priority{ 15 | _priority = priority; 16 | return self; 17 | } 18 | 19 | -(void)addAnimation:(ObjectAnimation*)object{ 20 | [object setPriority:_priority]; 21 | [AnimationsList appendInAnimationList:object]; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ios/Animation/HideAnimationsList.h: -------------------------------------------------------------------------------- 1 | // 2 | // HideAnimationsList.h 3 | // Pods 4 | // 5 | // Created by Ethan Gray on 8/23/22. 6 | // 7 | 8 | #import "AnimationsList.h" 9 | #import 10 | #import "ObjectAnimation.h" 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface HideAnimationsList : NSObject 14 | 15 | +(void) appendInAnimationList:(ObjectAnimation*) object; 16 | +(ObjectAnimation *) getItem:(NSString*) key; 17 | +(NSString*) getHead; 18 | +(void) initializeDictionary; 19 | +(int) getLength; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | 25 | -------------------------------------------------------------------------------- /ios/Animation/HideAnimationsList.m: -------------------------------------------------------------------------------- 1 | // 2 | // HideAnimationsList.m 3 | // RNAnimatedSplash 4 | // 5 | // Created by Ethan Gray on 8/23/22. 6 | // 7 | 8 | // 9 | // HideGroupAnimation.m 10 | // splashmoduleios 11 | // 12 | // Created by Smith Charles on 29/09/2020. 13 | // 14 | 15 | #import "HideAnimationsList.h" 16 | #import "ObjectAnimation.h" 17 | @class ObjectAnimation; 18 | @implementation HideAnimationsList 19 | 20 | static NSMutableDictionary *hideAnimationsList; 21 | 22 | static NSString *hideAnimationListHead = NULL; 23 | static NSString *hideAnimationListTail = NULL; 24 | 25 | +(void) initializeDictionary{ 26 | hideAnimationsList = [[NSMutableDictionary alloc] init]; 27 | } 28 | 29 | +(void) appendInAnimationList:(ObjectAnimation*) object{ 30 | 31 | NSUUID *uuid = [NSUUID UUID]; 32 | NSString *str = [uuid UUIDString]; 33 | 34 | if([hideAnimationsList count] == 0){ 35 | hideAnimationListHead = str; 36 | } 37 | 38 | [hideAnimationsList setObject:object forKey:str]; 39 | hideAnimationsList[hideAnimationListTail].hideNext = str; 40 | hideAnimationListTail = str; 41 | hideAnimationsList[str] = object; 42 | } 43 | 44 | +(ObjectAnimation*) getItem:(NSString*) key{ 45 | return hideAnimationsList[key]; 46 | } 47 | 48 | +(NSString*) getHead{ 49 | return hideAnimationListHead; 50 | } 51 | 52 | +(int) getLength{ 53 | return [hideAnimationsList count]; 54 | } 55 | @end 56 | 57 | -------------------------------------------------------------------------------- /ios/Animation/HideGroupAnimation.h: -------------------------------------------------------------------------------- 1 | // 2 | // HideGroupAnimation.h 3 | // splashmoduleios 4 | // 5 | // Created by Smith Charles on 22/09/2020. 6 | // 7 | #import 8 | #import 9 | #import "AddImageView.h" 10 | @class AddImageView; 11 | #import 12 | #import "Splash.h" 13 | @class Splash; 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @interface HideGroupAnimation : NSObject 17 | 18 | @property (nonatomic) int priority; 19 | 20 | 21 | -(instancetype) init:(int)priority;\ 22 | 23 | -(void)addAnimation:(ObjectAnimation*)object; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /ios/Animation/HideGroupAnimation.m: -------------------------------------------------------------------------------- 1 | // 2 | // HideGroupAnimation.m 3 | // splashmoduleios 4 | // 5 | // Created by Smith Charles on 22/09/2020. 6 | // 7 | 8 | #import "HideGroupAnimation.h" 9 | #import "HideAnimationsList.h" 10 | #import "Splash.h" 11 | 12 | @implementation HideGroupAnimation 13 | 14 | -(instancetype)init:(int)priority{ 15 | _priority = priority; 16 | return self; 17 | } 18 | 19 | -(void)addAnimation:(ObjectAnimation*)object{ 20 | [object setHidePriority:_priority]; 21 | [HideAnimationsList appendInAnimationList:object]; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ios/Animation/HideSingleAnimation.h: -------------------------------------------------------------------------------- 1 | // 2 | // HideSingleAnimation.h 3 | // Pods 4 | // 5 | // Created by Ethan Gray on 8/23/22. 6 | // 7 | 8 | #import "AnimatedObject.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface HideSingleAnimation : NSObject 13 | 14 | -(instancetype)init:(ObjectAnimation *)object priority:(int)priority; 15 | 16 | @end 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /ios/Animation/HideSingleAnimation.m: -------------------------------------------------------------------------------- 1 | // 2 | // HideSingleAnimation.m 3 | // RNAnimatedSplash 4 | // 5 | // Created by Ethan Gray on 8/23/22. 6 | // 7 | 8 | #import 9 | #import "HideSingleAnimation.h" 10 | #import "AnimateObject.h" 11 | #import "HideAnimationsList.h" 12 | 13 | 14 | @implementation HideSingleAnimation 15 | 16 | -(instancetype)init:(ObjectAnimation *)object priority:(int)priority{ 17 | [object setHidePriority:priority]; 18 | [HideAnimationsList appendInAnimationList:object]; 19 | return self; 20 | } 21 | 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ios/Animation/SingleAnimation.h: -------------------------------------------------------------------------------- 1 | // 2 | // SingleAnimation.h 3 | // Pods 4 | // 5 | // Created by Ethan Gray on 8/23/22. 6 | // 7 | 8 | #import "AnimatedObject.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface SingleAnimation : NSObject 13 | 14 | -(instancetype)init:(ObjectAnimation *)object priority:(int)priority; 15 | 16 | @end 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /ios/Animation/SingleAnimation.m: -------------------------------------------------------------------------------- 1 | // 2 | // SingleAnimation.m 3 | // RNAnimatedSplash 4 | // 5 | // Created by Ethan Gray on 8/23/22. 6 | // 7 | 8 | #import 9 | #import "SingleAnimation.h" 10 | #import "AnimateObject.h" 11 | #import "AnimationsList.h" 12 | 13 | 14 | @implementation SingleAnimation 15 | 16 | -(instancetype)init:(ObjectAnimation *)object priority:(int)priority{ 17 | [object setPriority:priority]; 18 | [AnimationsList appendInAnimationList:object]; 19 | return self; 20 | } 21 | 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ios/Animation/Splash.h: -------------------------------------------------------------------------------- 1 | // 2 | // SplashMViewController.h 3 | // splashmoduleios 4 | // 5 | // Created by Smith Charles on 02/09/2020. 6 | // 7 | 8 | #import 9 | #import 10 | #import "AnimatedObject.h" 11 | @class AnimatedObject; 12 | #import "ObjectAnimation.h" 13 | @class ObjectAnimation; 14 | NS_ASSUME_NONNULL_BEGIN 15 | //extern UIView *background; 16 | @interface Splash : UIViewController 17 | { 18 | 19 | // AppDelegate *app; 20 | } 21 | @property (nonatomic) int priority; 22 | @property (nonatomic) int hidePriority; 23 | +(void)addImagetoView:(AnimatedObject *)object; 24 | //-(void)addImageView:(NSString *)name :(CGFloat)positionX :(CGFloat)positionY :(CGFloat)width :(CGFloat)height; 25 | 26 | -(void)createSplashView:UIViewController; 27 | -(void)setBackgroundColor:NSString; 28 | -(void)setBackgroundImage:NSString; 29 | -(void)setSplashHideAnimation:(int)splashHideAnimation; 30 | -(void)setHideDelay:(int)delay; 31 | -(void)hideSplashDialog; 32 | -(void)splashShow; 33 | 34 | -(void)addAnimation:(AnimatedObject *)object priority:(int)priority; 35 | 36 | -(void)hide; 37 | -(void)runAnimation; 38 | +(void)setInstance:(Splash*)splashinstance; 39 | -(void)dismissSplashDialog; 40 | -(void)addImageToView:(AnimatedObject*)object; 41 | extern Splash *splashClassInstance; 42 | 43 | -(void)runSpecificAnimation:(ObjectAnimation*)object; 44 | -(void)runSpecificHideAnimation:(ObjectAnimation*)object; 45 | 46 | @property (nonatomic, strong) UIWindow *window; 47 | @property (nonatomic) int splashHideDelay; 48 | @property (nonatomic) bool isHideOnDialogAnimation; 49 | extern int counter; 50 | extern float screenWidth; 51 | extern float screenHeight; 52 | extern int hidecounter; 53 | extern bool hidingfinal; 54 | extern int animatedObjectLength; 55 | extern int hideanimatedObjectLength; 56 | extern bool jsCalled; 57 | extern bool shouldHide; 58 | extern bool allExecuted; 59 | extern int const SLIDE; 60 | extern int const ROTATE; 61 | extern int const SCALE; 62 | extern int const FADE; 63 | extern int const FIT_XY; 64 | extern int const FIT_CENTER; 65 | extern int const FIT_END; 66 | extern int const FIT_START; 67 | extern int const SPLASH_FADE; 68 | extern int const SPLASH_SLIDE_DOWN; 69 | extern int const SPLASH_SLIDE_LEFT; 70 | extern int const SPLASH_SLIDE_RIGHT; 71 | extern int splashHideAnimationType; 72 | 73 | -(CGFloat)getCenterX:(CGFloat)width; 74 | -(CGFloat)getCenterY:(CGFloat)height; 75 | -(void)hide; 76 | @end 77 | 78 | NS_ASSUME_NONNULL_END 79 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'RNAnimatedSplash' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for RNAnimatedSplash 9 | 10 | end 11 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODFILE CHECKSUM: 6ca67fb3319b6fe292c777ab174488ac4b8c75fc 2 | 3 | COCOAPODS: 1.10.0.beta.1 4 | -------------------------------------------------------------------------------- /ios/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODFILE CHECKSUM: 6ca67fb3319b6fe292c777ab174488ac4b8c75fc 2 | 3 | COCOAPODS: 1.10.0.beta.1 4 | -------------------------------------------------------------------------------- /ios/Pods/Target Support Files/Pods-RNAnimatedSplash/Pods-RNAnimatedSplash-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Pods/Target Support Files/Pods-RNAnimatedSplash/Pods-RNAnimatedSplash-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /ios/Pods/Target Support Files/Pods-RNAnimatedSplash/Pods-RNAnimatedSplash-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /ios/Pods/Target Support Files/Pods-RNAnimatedSplash/Pods-RNAnimatedSplash-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_RNAnimatedSplash : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_RNAnimatedSplash 5 | @end 6 | -------------------------------------------------------------------------------- /ios/Pods/Target Support Files/Pods-RNAnimatedSplash/Pods-RNAnimatedSplash-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_RNAnimatedSplashVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_RNAnimatedSplashVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /ios/Pods/Target Support Files/Pods-RNAnimatedSplash/Pods-RNAnimatedSplash.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | PODS_BUILD_DIR = ${BUILD_DIR} 4 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 5 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 6 | PODS_ROOT = ${SRCROOT}/Pods 7 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 8 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 9 | -------------------------------------------------------------------------------- /ios/Pods/Target Support Files/Pods-RNAnimatedSplash/Pods-RNAnimatedSplash.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_RNAnimatedSplash { 2 | umbrella header "Pods-RNAnimatedSplash-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /ios/Pods/Target Support Files/Pods-RNAnimatedSplash/Pods-RNAnimatedSplash.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | PODS_BUILD_DIR = ${BUILD_DIR} 4 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 5 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 6 | PODS_ROOT = ${SRCROOT}/Pods 7 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 8 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 9 | -------------------------------------------------------------------------------- /ios/RNAnimatedSplash.h: -------------------------------------------------------------------------------- 1 | 2 | #if __has_include("RCTBridgeModule.h") 3 | #import "RCTBridgeModule.h" 4 | #else 5 | #import 6 | #endif 7 | #import "Animation/Splash.h" 8 | @interface RNAnimatedSplash : NSObject 9 | @property (nonatomic, strong) UIWindow *window; 10 | 11 | @end 12 | 13 | -------------------------------------------------------------------------------- /ios/RNAnimatedSplash.m: -------------------------------------------------------------------------------- 1 | 2 | #import "RNAnimatedSplash.h" 3 | #import "Animation/Splash.h" 4 | @implementation RNAnimatedSplash 5 | 6 | - (dispatch_queue_t)methodQueue 7 | { 8 | return dispatch_get_main_queue(); 9 | } 10 | RCT_EXPORT_MODULE(); 11 | RCT_EXPORT_METHOD(hide){ 12 | 13 | NSLog(@"in hide splash react"); 14 | [splashClassInstance hide]; 15 | 16 | } 17 | @end 18 | 19 | -------------------------------------------------------------------------------- /ios/RNAnimatedSplash.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = "RNAnimatedSplash" 4 | s.version = "1.0.3" 5 | s.summary = "RNAnimatedSplash" 6 | s.description = <<-DESC 7 | RNAnimatedSplash 8 | DESC 9 | s.homepage = "" 10 | s.license = "MIT" 11 | # s.license = { :type => "MIT", :file => "FILE_LICENSE" } 12 | s.author = { "author" => "alisajames048@gmail.com" } 13 | s.platform = :ios, "9.0" 14 | s.source = { :git => "https://github.com/Blitz-Mobile-Apps/react-native-animated-splash.git", :tag => "master" } 15 | s.source_files = "RNAnimatedSplash/**/*.{h,m}" 16 | s.requires_arc = true 17 | 18 | 19 | s.dependency "React" 20 | #s.dependency "others" 21 | 22 | end 23 | 24 | -------------------------------------------------------------------------------- /ios/RNAnimatedSplash.xcodeproj/xcshareddata/xcschemes/RNAnimatedSplash.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 50 | 51 | 57 | 58 | 59 | 60 | 62 | 63 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /ios/RNAnimatedSplash.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/RNAnimatedSplash.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-animated-splash", 3 | "version": "1.3.9", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "bugs": { 10 | "email": "alisajames048@gmail.com", 11 | "url": "https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/issues" 12 | }, 13 | "contributors": [ 14 | "alisajames048@gmail.com", 15 | "mick.richard19@gmail.com", 16 | "alex.evans1230@gmail.com" 17 | ], 18 | "publisher": "Blitz Mobile Apps", 19 | "keywords": [ 20 | "react-native" 21 | ], 22 | "homepage": "https://github.com/Blitz-Mobile-Apps/react-native-animated-splash/", 23 | "keywords": [ 24 | "react-native", 25 | "splash", 26 | "animations", 27 | "animated-splash", 28 | "loader", 29 | "native animations", 30 | "easy splash", 31 | "interactive", 32 | "react-native-splash", 33 | "react-native-splash-screen", 34 | "slide animation", 35 | "hybrid mobile app", 36 | "rotate animation", 37 | "fade animation", 38 | "scale animation", 39 | "cross platform" 40 | ], 41 | "author": "alisajames048@gmail.com", 42 | "license": "MIT", 43 | "peerDependencies": { 44 | "react-native": "^0.41.2" 45 | } 46 | } --------------------------------------------------------------------------------