Core
@react-spring/core
The platform-agnostic core of `react-spring`
React Native Libraries
animated
animation
hooks
motion
react
react-native
spring
typescript
velocity
@react-spring/core
Stars
29k
Weekly
5.4M
Open issues
75
Bundle
~15 kB
Installation
npm install @react-spring/coreCode example
import { View, Text, StyleSheet } from "react-native";
import { Core } from "@react-spring/core";
export function Example() {
return (
<View style={styles.box}>
<Text style={styles.title}>Core</Text>
<Core />
</View>
);
}
const styles = StyleSheet.create({
box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
title: { fontSize: 18, fontWeight: "600" },
});Pros & cons
Pros
- Actively maintained by Paul Henschel
- 5.4M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- 75 open issues on GitHub