Animated splash screen component for React Native.
npm install onflow-rn-splash-screenAnimated splash screen component for React Native.
``bash`
npm install onflow-rn-splash-screenor
yarn add onflow-rn-splash-screen
`tsx
import React, { useEffect, useState } from "react";
import { AnimatedSplash } from "onflow-rn-splash-screen";
const App = () => {
const [showSplash, setShowSplash] = useState(true);
useEffect(() => {
const timeout = setTimeout(() => {
setShowSplash(false);
}, 1000);
return () => clearTimeout(timeout);
}, []);
return (
<>
onHideComplete={() => {
// splash hidden
}}
/>
{/ your app content /}
>
);
};
export default App;
`
| Prop | Type | Required | Description |
| ---------------- | ------------ | -------- | -------------------------------------------------- |
| isVisible | boolean | Yes | Controls whether the splash is visible. |onHideComplete
| | () => void` | No | Callback fired after the hide animation completes. |
UNLICENSED