
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
react-native-pixel-launch
Advanced tools
Pixel Launcher-style scale-from-origin overlay animation for React Native
Pixel Launcher-style scale-from-origin overlay animation for React Native and Expo.
Opens a full-screen overlay that scales up from any element on screen (like Android's Pixel Launcher app-open animation), and collapses back on close.
useNativeDriver: true) for smooth 60/120 Hz performancereact and react-native)npm install react-native-pixel-launch
# or
yarn add react-native-pixel-launch
import { useState, useRef } from "react";
import { View, TouchableOpacity, Text } from "react-native";
import {
PixelLaunchContainer,
type LaunchOrigin,
} from "react-native-pixel-launch";
export default function App() {
const [visible, setVisible] = useState(false);
const [origin, setOrigin] = useState<LaunchOrigin | null>(null);
const btnRef = useRef<View>(null);
const handleOpen = () => {
btnRef.current?.measure((_x, _y, width, height, pageX, pageY) => {
setOrigin({ x: pageX, y: pageY, width, height });
setVisible(true);
});
};
return (
<View style={{ flex: 1 }}>
<TouchableOpacity ref={btnRef} onPress={handleOpen}>
<Text>Open</Text>
</TouchableOpacity>
<PixelLaunchContainer
visible={visible}
origin={origin}
onClose={() => setVisible(false)}
onDismissed={() => console.log("fully closed")}
backgroundColor="#FFFFFF"
>
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
<Text>Your screen content here</Text>
<TouchableOpacity onPress={() => setVisible(false)}>
<Text>Close</Text>
</TouchableOpacity>
</View>
</PixelLaunchContainer>
</View>
);
}
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
visible | boolean | Yes | — | Controls open/close state |
origin | LaunchOrigin | null | Yes | — | Screen-absolute rect of the trigger element |
onClose | () => void | Yes | — | Called when user wants to close |
onDismissed | () => void | No | — | Called after close animation completes |
backgroundColor | string | No | "#FFFFFF" | Overlay background colour |
children | ReactNode | Yes | — | Content rendered inside the overlay |
type LaunchOrigin = {
x: number; // pageX from ref.measure()
y: number; // pageY from ref.measure()
width: number;
height: number;
};
Get these values using ref.measure() on the trigger element — see the usage example above.
MIT — made by Sourabh Patidar
FAQs
Pixel Launcher-style animations for React Native — overlay transitions, dialogs, bottom sheets, and dome footer with FAB menu
The npm package react-native-pixel-launch receives a total of 18 weekly downloads. As such, react-native-pixel-launch popularity was classified as not popular.
We found that react-native-pixel-launch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.