foontofoonto

Overview

Getting Started

Install the library, set up its peers, and you're ready to animate.

Installation

Install the library alongside its peer dependencies.

Expo (recommended)

Terminal
npx expo install react-native-foonto react-native-reanimated react-native-gesture-handler expo-linear-gradient

Bare React Native

Terminal
npm install react-native-foonto react-native-reanimated react-native-gesture-handler expo-linear-gradient

Peer dependencies

foonto is a thin layer — it relies on these well-known libraries you likely already use.

  • react-native-reanimated (v4+) — drives every animation on the UI thread.
  • react-native-gesture-handler (v2+) — powers the swipe gestures.
  • expo-linear-gradient — the shimmer gradient for skeletons.

On Expo SDK 56, babel-preset-expo auto-configures the Reanimated worklets plugin — you do not need a custom babel.config.js.

Wrap your app

Gesture Handler needs a single root wrapper. Add it once at the top of your tree.

App.tsx
// App root — wrap your tree once.
import { GestureHandlerRootView } from "react-native-gesture-handler";

export default function App() {
  return (
    <GestureHandlerRootView style={{ flex: 1 }}>
      {/* ...your navigator / screens... */}
    </GestureHandlerRootView>
  );
}

Components

Each component page has a copy-paste “How to use” snippet and a ready-to-paste AI prompt.