Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. React Native
  3. react-native-anchor-point

react-native-anchor-point

MITTypeScript

A React Native utility that provides CSS-like transform-origin functionality for better 3D transform animations.

Visit WebsiteGitHubGitHub
209 stars13 forks0 contributors

What is react-native-anchor-point?

react-native-anchor-point is a React Native utility library that provides CSS-like transform-origin functionality for 3D transform animations. It allows developers to set custom anchor points (like pivot points in Android or anchor points in iOS) for transforms, enabling more realistic and complex 3D rotations and animations. This solves the limitation in React Native where transforms default to rotating around the center, making advanced animations difficult.

Target Audience

React Native developers building apps with complex 3D animations or UI effects, particularly those needing precise control over transform pivot points similar to CSS or native platforms.

Value Proposition

Developers choose this library because it fills a specific gap in React Native's animation capabilities, offering a simple, lightweight solution for anchor point control without requiring native code or complex workarounds.

Overview

Provides a function like transform-origin in css, anchor point in iOS, pivot point in Android. It makes3D transform animation better in React-Native.

Use Cases

Best For

  • Creating 3D card flip animations with custom pivot points
  • Building complex UI components that rotate around edges or corners
  • Implementing CSS-like transform-origin behavior in React Native
  • Achieving consistent cross-platform 3D transform animations
  • Enhancing React Native animations with precise anchor control
  • Developing interactive 3D effects in mobile apps

Not Ideal For

  • Projects that only require basic 2D animations without custom pivot points
  • Apps with strict performance constraints where 3D transform overhead is prohibitive
  • Teams seeking a full-featured animation library with pre-built components and effects

Pros & Cons

Pros

Precise Anchor Control

Enables setting custom pivot points for transforms, similar to CSS transform-origin, as demonstrated in the example with rotateX and perspective for realistic 3D effects.

Simple API Integration

Provides a single `withAnchorPoint` function that easily integrates with existing transform styles, making it straightforward to adopt without overhauling animation code.

Cross-Platform Consistency

Delivers consistent transform behavior across iOS and Android, mimicking standards from CSS and native platforms, as highlighted in the key features.

3D Transform Support

Works with 3D properties like perspective, rotateX, and rotateY, enabling complex animations as shown in the GIF examples of rotating elements.

Cons

Niche Functionality

Only addresses anchor point control, so for complete animation solutions, developers need to pair it with other libraries like React Native's Animated or Reanimated, adding complexity.

Minimal Documentation

The README provides only a basic example; advanced usage, edge cases, or integration with other animation tools are not covered in detail, which might hinder adoption.

Performance Considerations

3D transforms can be resource-intensive on mobile devices, and this library doesn't include optimizations for smooth animations at scale, relying on React Native's underlying performance.

Frequently Asked Questions

Quick Stats

Stars209
Forks13
Contributors0
Open Issues5
Last commit3 years ago
CreatedSince 2020

Tags

#animation#react-native#ui-components#mobile-development#cross-platform

Built With

J
JavaScript
R
React Native

Links & Resources

Website

Included in

React Native35.6k
Auto-fetched 1 day ago

Related Projects

react-native-vector-iconsreact-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.

Stars17,905
Forks2,101
Last commit1 month ago
lottie-react-nativelottie-react-native

Lottie wrapper for React Native.

Stars17,189
Forks1,799
Last commit9 days ago
react-native-mapsreact-native-maps

React Native Mapview component for iOS + Android

Stars15,980
Forks4,953
Last commit1 day ago
react-native-gifted-chatreact-native-gifted-chat

💬 The most complete chat UI for React Native

Stars14,446
Forks3,603
Last commit15 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub