react-native-google-analytics | Google Analytics for React Native | Frontend Framework library

 by   rnc-archive JavaScript Version: Current License: MIT

kandi X-RAY | react-native-google-analytics Summary

kandi X-RAY | react-native-google-analytics Summary

react-native-google-analytics is a JavaScript library typically used in User Interface, Frontend Framework, React Native, React applications. react-native-google-analytics has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Google Analytics for React Native! Compatible with react-native-ab

            kandi-support Support

              react-native-google-analytics has a low active ecosystem.
              It has 388 star(s) with 60 fork(s). There are 9 watchers for this library.
              It had no major release in the last 6 months.
              There are 16 open issues and 16 have been closed. On average issues are closed in 17 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of react-native-google-analytics is current.

            kandi-Quality Quality

              react-native-google-analytics has 0 bugs and 0 code smells.

            kandi-Security Security

              react-native-google-analytics has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              react-native-google-analytics code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              react-native-google-analytics is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              react-native-google-analytics releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-google-analytics
            Get all kandi verified functions for this library.

            react-native-google-analytics Key Features

            No Key Features are available at this moment for react-native-google-analytics.

            react-native-google-analytics Examples and Code Snippets

            No Code Snippets are available at this moment for react-native-google-analytics.

            Community Discussions


            Failed to resolve:
            Asked 2020-May-30 at 02:59

            Here is my dependencies



            Answered 2018-Jun-11 at 10:17

            Move google() to before jcenter() in your build.gradle e.g.



            How to enable stacktrace react-native run-android command?
            Asked 2019-Dec-17 at 05:55

            I'm running a react native project via the react-native run-android. But during the build it fails stating that :react-native-device-info:processReleaseResources FAILED. Which doesn't give much info, so I tried running with react-native run-android --stacktrace as suggested but that isn't a recognized command.

            How can you enable stacktrace / verbose logging with react-native run-android command?

            This is the detail of the error which is too short to figure out at build:



            Answered 2017-Nov-20 at 08:12

            Try to build react-native-device-info separately with ./gradlew assembleDebug and make sure react-native-device-info is all right. I have the same problems because of my network which is blocked and can not reach jcenter.

            By the way, --stacktrace should be add as gradle parameters, I doubt react-native does not pass it to gradle.



            Android build suddenly starts failing with : resource android:attr/fontVariationSettings not found
            Asked 2019-Nov-25 at 09:14

            Our android build started failing all on its own without a single line change for 2 days now.

            This is the error message:

            /Users/shroukkhan/.gradle/caches/transforms-1/files-1.1/ui-5.11.1.aar/baa8b66e2e52a0a50719f014fc3f1c32/res/values/values.xml:40:5-54: AAPT: error: resource android:attr/fontVariationSettings not found.

            /Users/shroukkhan/.gradle/caches/transforms-1/files-1.1/ui-5.11.1.aar/baa8b66e2e52a0a50719f014fc3f1c32/res/values/values.xml:40:5-54: AAPT: error: resource android:attr/ttcIndex not found.

            As I understand this is related to android support library version mismatch, so i have forced using same library version . However, the problem has persisted. Here is the root level build.gradle:



            Answered 2019-Jun-19 at 15:57

            The fontVariationSettings attribute was added in API Level 28.

            Set your compileSdkVersion to 28 or higher to be able to use libraries that reference this attribute.



            React-Native: undefined is not an object (evaluating 'Sn[e]')
            Asked 2019-Aug-26 at 08:17

            native community!

            I am trying to run an application, but I keep getting this mysterious error:

            com.facebook.react.common.JavascriptException: undefined is not an object (evaluating 'Sn[e]'),

            I'm getting this error in Android Studio when I use the class Run button to try to build the app on my phone (yes, it is connected and recognized), and I also get this error when I use the terminal to run react-native run-android.

            When I run / build the app, it installs the apk on my phone, but when it starts up it crashes immediately, every time.

            I found this error following error at least 6 times when using adb logcat *:E in the terminal:

            And I find this error multiple times when clicking "Run" in Android Studio.

            I've only seen 1 or two similar issues before like here on SO, or

            I also tried react-native bundle --platform android --dev false --entry-file --bundle-output android/app/src/main/assets/ --assets-dest android/app/src/main/res/ from this SO question but it didn't work for me either.

            Here are my main gradle files:




            Answered 2019-Aug-26 at 08:17

            It turns out, this was an error in my file and it took me a while to figure out that I could trace which package the error was coming from by looking at the bundled code around Sn[e]. It turns out, this error was coming from react-navigation and I had to complete the following steps:

            1. Follow the complete react-navigation install guide
              • Install react-native-gesture-handler and react-native-reanimated (there's instructions on the site for your specific react-native version & if you're using expo or not)
              • Add some imports & new function to my file
            2. Install fbjs package to resolve some missing dependencies (see this SO answer)
            3. Re-bundle my code with:
              • react-native bundle --platform android --dev false --entry-file --bundle-output android/app/src/main/assets/ --assets-dest android/app/src/main/res/



            React-native android build fails: "...AAPT: error: resource android:attr/fontVariationSettings not found."
            Asked 2019-Jun-20 at 11:11

            I was trying to build an Android project on react-native application. Everything was working correctly until this morning. It is strange since no code was changed but build is failing. It could be something to do with internal dependency update but I was unable to figure it out.

            I was trying to update compileSdkVersion to 28 but this produces more problems and I would like to avoid it if it was not completely necessary.




            Answered 2019-Jun-20 at 11:11

            It seems to be related to Google releasing a new version of their Play Service and as you don't want to update compileSdkVersion.

            try this:



            React Native: Violation of Usage of Android Advertising ID policy and section 4.8 of the Developer Distribution Agreement
            Asked 2019-Apr-06 at 13:17

            I got this policy in my React Native App :

            Violation of Usage of Android Advertising ID policy and section 4.8 of the Developer Distribution Agreement

            form Google Play

            I use this dependencies



            Answered 2018-Sep-28 at 17:57

            I think you use these dependencies: react-native-device-info, react-native-google-analytics-bridge, they cause your problem, you must provide url policy on your app for google



            Which dependency is causing "Failed resolution Failed resolution of: Lcom/google/android/gms/common/internal/zzab;"
            Asked 2019-Jan-15 at 08:51

            I am NOT using firebase, which seems to be the cause of the problem for other people Here is screenshot of the error:

            Here is my dependency list:



            Answered 2019-Jan-15 at 08:30

            This looks like a dex issue.

            As you are targeting a minSDKVersion of 19 you need to add the following to your dependencies



            React Native - Jest.mock must be an inline function. Trouble testing component that uses 'withNavigation'
            Asked 2019-Jan-04 at 10:21

            I'm using Jest and Enzyme in my React Native app to test my component and I keep getting this error when testing babel-plugin-jest-hoist: The second argument of 'jest.mock' must be an inline function. I don't really understand what I'm doing wrong because I am passing an inline function.

            Here is my code in my test file (search-screen.tests.js):



            Answered 2019-Jan-04 at 10:21

            I'm guessing that the problem is that, for all intents and purposes, you're passing an object as the second parameter to jest.mock. The arrow function is within the object in the withNavigation key.

            I believe that you need to pass it an arrow function that returns that same object, like this:



            React-Native Android Build Failure: Execution failed for task ':app:processDebugResources'. Failed to process resources
            Asked 2018-Nov-28 at 12:22

            I cannot figure out what is wrong with the build. I tried the common solutions of running ./gradlew clean as well as adding the android.enableAapt2=false to the

            The google-services.json folder is at the /android/app level.

            Im at a loss right now as to how to get past this one.

            If I forgot to include something useful please lmk and I will update.


            Error Output

            Configure project :app WARNING: The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.3. Android SDK Build Tools 27.0.3 will be used. To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

            Configure project :react-native-google-analytics-bridge WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see:

            Configure project :react-native-radar WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see:

            Task :app:processDebugGoogleServices Parsing json file: /Users/kyletreman/18F/courier_test_app/android/app/google-services.json

            /Users/kyletreman/.gradle/caches/transforms-1/files-1.1/appcompat-v7-23.0.1.aar/64df69838d7c555de168bdcf18f3be5c/res/values/values.xml:113:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.

            /Users/kyletreman/.gradle/caches/transforms-1/files-1.1/appcompat-v7-23.0.1.aar/64df69838d7c555de168bdcf18f3be5c/res/values/values.xml:113:5-69: AAPT: error: resource android:attr/ttcIndex not found.

            error: failed linking references.

            FAILURE: Build failed with an exception.

            • What went wrong: Execution failed for task ':app:processDebugResources'. Failed to process resources, see aapt output above for details.

            • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

            • Get more help at

            BUILD FAILED in 2s 50 actionable tasks: 3 executed, 47 up-to-date Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment:




            Answered 2018-Jul-12 at 19:39


            I was able to get help from someone familiar with the native side and he helped me sort out quite a few errors.

            • implementation order matters, this was the order that worked for me



            React-native Android : App stuck on splashscreen on resume
            Asked 2018-Nov-13 at 16:22

            My app is stuck on splashscreen after resume:

            • Launch app
            • Press on back (go to Android dashboard)
            • Click on app icon
            • app is stuck on splascreen

            Here are my dependencies :



            Answered 2018-Nov-13 at 16:22

            You should call the SplashScreen.hide() from the componentDidMount() function.

            You can add a delay if you wish, for example:


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install react-native-google-analytics

            You can download it from GitHub.


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone rnc-archive/react-native-google-analytics

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link