react-native.mdx 903 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. title: Tabler Icons for React Native
  3. ---
  4. ![](https://raw.githubusercontent.com/tabler/tabler-icons/master/.github/packages/og-package-react-native.png)
  5. ## Installation
  6. <TabsPackage name="@tabler/icons-react-native" />
  7. or just [download from Github](https://github.com/tabler/tabler-icons/releases).
  8. ## How to use
  9. It's build with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.
  10. ```js
  11. import { IconArrowLeft } from '@tabler/icons-react-native';
  12. const App = () => {
  13. return <IconArrowLeft />;
  14. };
  15. export default App;
  16. ```
  17. You can pass additional props to adjust the icon.
  18. ```js
  19. <IconArrowLeft color="red" size={48} />
  20. ```
  21. ### Props
  22. | name | type | default |
  23. | ------------- | -------- | ------------ |
  24. | `size` | _Number_ | 24 |
  25. | `color` | _String_ | currentColor |
  26. | `stroke` | _Number_ | 2 |