From cc3cccb36dcde35d7b21157c77e62916162c6259 Mon Sep 17 00:00:00 2001 From: Coding By Jerez <52014882+CodingByJerez@users.noreply.github.com> Date: Thu, 1 Sep 2022 14:57:22 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Add=20Animation=20Pan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close the notification box by sliding up or or keep it open while keeping your finger on it --- .gitignore | 2 +- README.md | 26 +- babel.config.js | 1 + example/.buckconfig | 6 + example/.bundle/config | 2 + example/.eslintrc.js | 16 + example/.prettierrc.js | 7 + example/.ruby-version | 1 + example/.watchmanconfig | 1 + example/App.tsx | 117 + example/Gemfile | 6 + example/LICENSE | 21 - example/__tests__/App-test.tsx | 14 + example/android/app/_BUCK | 55 + example/android/app/build.gradle | 144 +- example/android/app/build_defs.bzl | 19 + .../android/app/src/debug/AndroidManifest.xml | 7 +- .../ReactNativeFlipper.java | 10 +- .../android/app/src/main/AndroidManifest.xml | 13 +- .../MainActivity.java | 15 - .../MainActivity.java | 48 + .../MainApplication.java | 31 +- .../MainApplicationReactNativeHost.java | 116 + .../components/MainComponentsRegistry.java | 36 + ...ApplicationTurboModuleManagerDelegate.java | 48 + example/android/app/src/main/jni/Android.mk | 48 + .../jni/MainApplicationModuleProvider.cpp | 24 + .../main/jni/MainApplicationModuleProvider.h | 16 + ...nApplicationTurboModuleManagerDelegate.cpp | 45 + ...ainApplicationTurboModuleManagerDelegate.h | 38 + .../src/main/jni/MainComponentsRegistry.cpp | 61 + .../app/src/main/jni/MainComponentsRegistry.h | 32 + example/android/app/src/main/jni/OnLoad.cpp | 11 + .../res/drawable/rn_edit_text_material.xml | 36 + .../app/src/main/res/values/strings.xml | 2 +- .../app/src/main/res/values/styles.xml | 4 +- .../src/main/res/xml/react_native_config.xml | 8 - example/android/build.gradle | 35 +- example/android/gradle.properties | 24 +- .../android/gradle/wrapper/gradle-wrapper.jar | Bin 55616 -> 59536 bytes .../gradle/wrapper/gradle-wrapper.properties | 2 +- example/android/gradlew | 257 +- example/android/gradlew.bat | 24 +- example/android/settings.gradle | 9 +- example/app.json | 6 +- example/babel.config.js | 1 + example/d.gitignored | 63 + example/index.js | 9 + example/index.tsx | 5 - ...AlertNotificationExample-Bridging-Header.h | 3 - .../project.pbxproj | 852 --- .../AlertNotificationExample/AppDelegate.m | 63 - .../AppIcon.appiconset/Contents.json | 38 - example/ios/AlertNotificationExample/main.m | 16 - example/ios/File.swift | 6 - example/ios/Podfile | 38 +- example/ios/Podfile.lock | 644 +- .../project.pbxproj | 702 ++ ...ctNativeAlertNotificationExample.xcscheme} | 57 +- .../contents.xcworkspacedata | 2 +- .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../AppDelegate.h | 7 - .../AppDelegate.mm | 133 + .../AppIcon.appiconset/Contents.json | 53 + .../Images.xcassets/Contents.json | 0 .../Info.plist | 4 +- .../LaunchScreen.storyboard | 15 +- .../main.m | 10 + .../Info.plist | 24 + ...ReactNativeAlertNotificationExampleTests.m | 66 + example/ios/_xcode.env | 11 + example/metro.config.js | 8 +- example/package.json | 45 +- example/src/App.tsx | 204 +- example/src/Page.tsx | 221 + example/tsconfig.json | 10 + example/yarn.lock | 6691 ++++++++++++----- package.json | 14 +- src/config/ENV.ts | 3 +- src/config/index.ts | 1 + src/containers/Dialog.tsx | 22 +- src/containers/Root.tsx | 33 +- src/containers/Toast.tsx | 259 +- src/containers/ToastRender.tsx | 215 + src/containers/index.ts | 9 +- src/index.tsx | 9 +- src/service/color.ts | 6 +- src/service/image.ts | 8 +- src/service/index.ts | 7 +- tsconfig.json | 2 +- yarn.lock | 979 +-- 91 files changed, 8525 insertions(+), 4487 deletions(-) create mode 100644 example/.buckconfig create mode 100644 example/.bundle/config create mode 100644 example/.eslintrc.js create mode 100644 example/.prettierrc.js create mode 100644 example/.ruby-version create mode 100644 example/.watchmanconfig create mode 100644 example/App.tsx create mode 100644 example/Gemfile delete mode 100644 example/LICENSE create mode 100644 example/__tests__/App-test.tsx create mode 100644 example/android/app/_BUCK create mode 100644 example/android/app/build_defs.bzl rename example/android/app/src/debug/java/com/{example/reactnativealertnotification => reactnativealertnotificationexample}/ReactNativeFlipper.java (93%) delete mode 100644 example/android/app/src/main/java/com/example/reactnativealertnotification/MainActivity.java create mode 100644 example/android/app/src/main/java/com/reactnativealertnotificationexample/MainActivity.java rename example/android/app/src/main/java/com/{example/reactnativealertnotification => reactnativealertnotificationexample}/MainApplication.java (68%) create mode 100644 example/android/app/src/main/java/com/reactnativealertnotificationexample/newarchitecture/MainApplicationReactNativeHost.java create mode 100644 example/android/app/src/main/java/com/reactnativealertnotificationexample/newarchitecture/components/MainComponentsRegistry.java create mode 100644 example/android/app/src/main/java/com/reactnativealertnotificationexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java create mode 100644 example/android/app/src/main/jni/Android.mk create mode 100644 example/android/app/src/main/jni/MainApplicationModuleProvider.cpp create mode 100644 example/android/app/src/main/jni/MainApplicationModuleProvider.h create mode 100644 example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp create mode 100644 example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h create mode 100644 example/android/app/src/main/jni/MainComponentsRegistry.cpp create mode 100644 example/android/app/src/main/jni/MainComponentsRegistry.h create mode 100644 example/android/app/src/main/jni/OnLoad.cpp create mode 100644 example/android/app/src/main/res/drawable/rn_edit_text_material.xml delete mode 100644 example/android/app/src/main/res/xml/react_native_config.xml create mode 100644 example/d.gitignored create mode 100644 example/index.js delete mode 100644 example/index.tsx delete mode 100644 example/ios/AlertNotificationExample-Bridging-Header.h delete mode 100644 example/ios/AlertNotificationExample.xcodeproj/project.pbxproj delete mode 100644 example/ios/AlertNotificationExample/AppDelegate.m delete mode 100644 example/ios/AlertNotificationExample/Images.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 example/ios/AlertNotificationExample/main.m delete mode 100644 example/ios/File.swift create mode 100644 example/ios/ReactNativeAlertNotificationExample.xcodeproj/project.pbxproj rename example/ios/{AlertNotificationExample.xcodeproj/xcshareddata/xcschemes/AlertNotificationExample.xcscheme => ReactNativeAlertNotificationExample.xcodeproj/xcshareddata/xcschemes/ReactNativeAlertNotificationExample.xcscheme} (60%) rename example/ios/{AlertNotificationExample.xcworkspace => ReactNativeAlertNotificationExample.xcworkspace}/contents.xcworkspacedata (71%) rename example/ios/{AlertNotificationExample.xcworkspace => ReactNativeAlertNotificationExample.xcworkspace}/xcshareddata/IDEWorkspaceChecks.plist (100%) rename example/ios/{AlertNotificationExample => ReactNativeAlertNotificationExample}/AppDelegate.h (50%) create mode 100644 example/ios/ReactNativeAlertNotificationExample/AppDelegate.mm create mode 100644 example/ios/ReactNativeAlertNotificationExample/Images.xcassets/AppIcon.appiconset/Contents.json rename example/ios/{AlertNotificationExample => ReactNativeAlertNotificationExample}/Images.xcassets/Contents.json (100%) rename example/ios/{AlertNotificationExample => ReactNativeAlertNotificationExample}/Info.plist (94%) rename example/ios/{AlertNotificationExample => ReactNativeAlertNotificationExample}/LaunchScreen.storyboard (66%) create mode 100644 example/ios/ReactNativeAlertNotificationExample/main.m create mode 100644 example/ios/ReactNativeAlertNotificationExampleTests/Info.plist create mode 100644 example/ios/ReactNativeAlertNotificationExampleTests/ReactNativeAlertNotificationExampleTests.m create mode 100644 example/ios/_xcode.env create mode 100644 example/src/Page.tsx create mode 100644 example/tsconfig.json create mode 100644 src/config/index.ts create mode 100644 src/containers/ToastRender.tsx diff --git a/.gitignore b/.gitignore index 093dbd0..65c2e53 100644 --- a/.gitignore +++ b/.gitignore @@ -59,4 +59,4 @@ android/keystores/debug.keystore # generated by bob lib/ -.npmrc +.npmrc \ No newline at end of file diff --git a/README.md b/README.md index 490e8d2..d6c6b0d 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ expo install react-native-safe-area-context ## Usage ```tsx -import { ALERT_TYPE, Dialog, Root, Toast } from 'react-native-alert-notification'; +import { ALERT_TYPE, Dialog, AlertNotificationRoot, Toast } from 'react-native-alert-notification'; - + // dialog box