GithubHelp home page GithubHelp logo

youjinbu / react-native-baidu-mtj Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 711 KB

A React Native wrapper around Baidu mobile analytics SDK

License: MIT License

Ruby 9.08% Kotlin 16.54% JavaScript 13.78% Java 14.07% Swift 17.68% Objective-C 7.09% TypeScript 21.77%
react-native baidu analytics-sdk

react-native-baidu-mtj's Introduction

react-native-baidu-mtj [WIP]

react-native wrapper for Baidu Mobile Analytics SDK(百度移动统计)

Installation

yarn add @youjinbu/react-native-baidu-mtj

Usage

Basic Usage

(see example)

import BaiduMtj from "@youjinbu/react-native-baidu-mtj"

BaiduMtj.start('app key')

export function SomeScreen() {
  useEffect(() => {
    // listen to focus event
    navigation.onFocus(() => {
      BaiduMtj.pageStart('home')
    })
    return () => BaiduMtj.pageEnd('home')
  }, [])

  return <View />
}

Supported Methods

declare const Analytics: {
  start(appKey: string, debug?: boolean): void;
  setChannel(channel: string): void;
  setUserId(userId: string): void;
  pageStart(pageName: string): void;
  pageEnd(pageName: string): void;
  event(eventId: string, label: string): void;
  eventStart(eventId: string, label: string): void;
  eventEnd(eventId: string, label: string): void;
};

Requirements

  • react-native >= 0.60.0

License

MIT

react-native-baidu-mtj's People

Contributors

dependabot[bot] avatar hehex9 avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

react-native-baidu-mtj's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency prettier to v3
  • chore(deps): update pnpm/action-setup action to v3
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cocoapods
example/ios/Podfile
github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/cache v2
  • actions/cache v2
  • pnpm/action-setup v2.2.1
gradle
android/build.gradle
  • com.android.tools.build:gradle 4.2.2
example/android/gradle.properties
example/android/settings.gradle
example/android/build.gradle
  • com.android.tools.build:gradle 4.2.2
example/android/app/build.gradle
  • androidx.swiperefreshlayout:swiperefreshlayout 1.1.0
gradle-wrapper
example/android/gradle/wrapper/gradle-wrapper.properties
  • gradle 6.9.1
npm
example/package.json
  • react 17.0.2
  • react-native 0.64.1
  • @babel/core 7.21.0
  • @babel/runtime 7.21.0
  • babel-plugin-module-resolver 4.1.0
  • metro-react-native-babel-preset 0.75.1
package.json
  • @youjinbu/eslint-config 0.10.0
  • @youjinbu/prettier-config 0.0.1
  • eslint 8.35.0
  • pod-install 0.1.38
  • prettier 2.8.4
  • react 17.0.2
  • react-native 0.71.3
  • react-native-builder-bob 0.20.4
  • typescript 4.9.5
  • react >=16
  • react-native >=0.60.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.