New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@thinksys/react-native-mediapipe

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thinksys/react-native-mediapipe

ThinkSys MediaPipe package for React Native

latest
Source
npmnpm
Version
0.0.20
Version published
Maintainers
1
Created
Source

React Native Mediapipe

The ThinkSys Mediapipe enables pose detection for React Native apps, providing a comprehensive solution for both iOS and Android developers. It offers real-time motion tracking, seamless integration, and customizable features, ideal for fitness, healthcare, and interactive applications. By combining MediaPipe's advanced capabilities with React Native's cross-platform framework, developers can easily build immersive, motion-based apps across both mobile platforms.

ThinkSys

Requirement

  • iOS 13 or higher
  • Gradle minimum SDK 24 or higher
  • Android SDK Version 26 or higher

Installation

npm install @thinksys/react-native-mediapipe

iOS setup

  • Add camera usage permission in Info.plist in example/ios

    <key>NSCameraUsageDescription</key>
    <string>This app uses camera to get pose landmarks that appear in the camera feed.</string>
    
  • Add the CocoaPods CDN source at the top of your ios/Podfile:

    source 'https://cdn.cocoapods.org/'
    
  • Run cd ios && pod install

Note: The MediaPipeTasksVision dependency is pinned to version 0.10.14 in this library. If pod search MediaPipeTasksVision returns no results, that is expected — the pod resolves via the CDN source above. To update the version, override it in your Podfile:

pod 'MediaPipeTasksVision', '0.10.14'

Android setup

Add these to your project's manifest.

<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.CAMERA" />

Props

PropDescription
widthSets the camera view width.
heightSets the camera view height.
onLandmarkCallback function to retrieve body landmark data.
frameLimitset the frame rate during initialization(ios only).
faceToggles visibility of the face in the body model. Affects the data provided by onLandmark.
leftArmToggles visibility of the left arm in the body model. Affects the data provided by onLandmark.
rightArmToggles visibility of the right arm in the body model. Affects the data provided by onLandmark.
leftWristToggles visibility of the left wrist in the body model. Affects the data provided by onLandmark.
rightWristToggles visibility of the right wrist in the body model. Affects the data provided by onLandmark.
torsoToggles visibility of the torso in the body model. Affects the data provided by onLandmark.
leftLegToggles visibility of the left leg in the body model. Affects the data provided by onLandmark.
rightLegToggles visibility of the right leg in the body model. Affects the data provided by onLandmark.
leftAnkleToggles visibility of the left ankle in the body model. Affects the data provided by onLandmark.
rightAnkleToggles visibility of the right ankle in the body model. Affects the data provided by onLandmark.

Usage

Basic

import { RNMediapipe } from '@thinksys/react-native-mediapipe';

export default function App() {

    return (
        <View>
            <RNMediapipe 
                width={400}
                height={300}
            />
        </View>
    )
}

Usage with body prop

Used to show/hide any body part overlay

By default, the body prop is set to true

import { RNMediapipe } from '@thinksys/react-native-mediapipe';

export default function App() {

    return (
        <View>
            <RNMediapipe 
                width={400}
                height={300}
                face={true}
                leftArm={true}
                rightArm={true}
                leftWrist={true}
                rightWrist={true}
                torso={true}
                leftLeg={true}
                rightLeg={true}
                leftAnkle={true}
                rightAnkle={true}
            />
        </View>
    )
}

Usage with switch camera method

import { RNMediapipe, switchCamera } from '@thinksys/react-native-mediapipe';

export default function App() {

    const onFlip = () => {
        switchCamera();
    };

    return (
        <View>
            <RNMediapipe 
                width={400}
                height={300}
            />

            <TouchableOpacity onPress={onFlip} style={styles.btnView}>
                <Text style={styles.btnTxt}>Switch Camera</Text>
            </TouchableOpacity>
        </View>
    )
}

Usage with onLandmark prop

import { RNMediapipe } from '@thinksys/react-native-mediapipe';

export default function App() {

    return (
        <View>
            <RNMediapipe 
                width={400}
                height={300}
                onLandmark={(data) => {
                    console.log('Body Landmark Data:', data);
                }}
            />
        </View>
    )
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

thinksys

linkedin

License

This project is licensed under a custom MIT License with restrictions - see the LICENSE file for details.

Keywords

react-native

FAQs

Package last updated on 02 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts