React Native Available
The icons as components for React Native and Expo. They are drawn with react-native-svg, so they are sharp at any size and take any color.
Install
npm install @rdicons/react-native react-native-svg
# Expo: npx expo install react-native-svgimport { House, Bell } from '@rdicons/react-native/lucide'
import { Rocket } from '@rdicons/react-native/rd'
<House size={28} color="#4f46e5" />
<Bell title="Notifications" />
<Rocket strokeWidth={2} />Every library has its own path (/lucide, /tabler, /ph, /rd and so on). Each icon page shows the exact name.
Props
| Prop | Default | What it does |
|---|---|---|
size | 24 | Width and height in px |
color | #000000 | Stroke or fill color. React Native has no inherited text color for SVG, so pass it. |
strokeWidth | the icon's own | Replaces the stroke width of outline icons |
title | none | Accessible name. Without it the icon is hidden from screen readers. |
Keep the app small
Metro, the React Native bundler, does not drop unused exports, so importing from a library path bundles that whole library. For a handful of icons, copy only those into your project:
npx rdicons add lucide:house lucide:bell rd:rocket --format rn --out src/iconsThat writes one .tsx file per icon that needs only react-native-svg. Colour effects work too: add --gradient "#ec4899,#4f46e5" or --duotone. See the command line page.
Animation
The rd icons can move, with React Native's own Animated (no extra library). It is the same animation as on the web, for every rd icon.
import { Bell, Rocket } from '@rdicons/react-native/rd'
<Bell animate /> // plays once when it appears
<Rocket animate="loop" speed={1.5} /> // repeats: loading states
const ref = useRef<RdIconHandle>(null)
<Pressable onPress={() => ref.current?.play()}>
<Bell ref={ref} />
</Pressable>animate:trueor"play"plays once each time it turns on;"loop"repeats. Other libraries ignore it.- It stops when the device asks for reduced motion.
- Colour effects work on animated icons too:
<Bell animate gradient={['#ec4899', '#4f46e5']} />. @rdicons/react-native/rd-staticis the same library without the animation data, about 60% smaller, for apps that do not animate.