• Stars
    star
    202
  • Rank 186,834 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

⭐Eva Icons for React Native

react-native-eva-icons Eva Design System Build Status Coverage Status

❤️ Clean and powerful Eva Icons implementation for React Native based on react-native-svg elements. Demo

Installation

npm i react-native-eva-icons
# Using Yarn?
# yarn add react-native-eva-icons

This framework assumes you have already installed react-native-svg, but if not - you should install it too.

Usage

Icons can be used by it's name using only Icon component.

import { Icon } from 'react-native-eva-icons';

export const GithubIcon = () => (
  <Icon name='github' width={48} height={48} fill='green' />
);

You can also use a direct imports.

import GithubIcon from 'react-native-eva-icons/icons/Github';

export const GithubIcon = () => (
  <GithubIcon width={48} height={48} fill='green' />
);

Customization

React Native Eva Icons are built with react-native-svg elements. All of the components can accept the same properties as SVG elements.

For example, you can change icon fill color with the following code

import { Icon } from 'react-native-eva-icons';

export const GithubIcon = () => (
  <Icon name='github' fill='green' />
);

Animations

Implements original Eva Icons animations. Try demo on Snack for review!

import React from 'react';
import { TouchableWithoutFeedback } from 'react-native';
import { Icon } from 'react-native-eva-icons';

export const GithubIcon = () => {

  const iconRef = React.useRef(null);

  const onIconPress = () => {
    iconRef.current?.startAnimation();
  };

  return (
    <TouchableWithoutFeedback onPress={onIconPress}>
      <Icon ref={iconRef} animation='pulse' name='activity' fill='green' />
    </TouchableWithoutFeedback>
  );
};

Demo

Try it on Snack!

Where is icons source code?

React Native Eva Icons sources are generated with ts-node scripts, so there is no need to track them in default branch of the repo. But if you don't trust CI and want to review generated sources, take a look at bundle branch.

How can I support this project?

Any way of supporting gives me a ton of motivation to create other beautiful Open Source things

  • Star this repo
  • Submit new issues, open a pull requests 🔧
  • Follow me on Twitter 😼

More Repositories

1

ngx-admin

Customizable admin dashboard template based on Angular 10+
TypeScript
24,955
star
2

blur-admin

AngularJS Bootstrap Admin Panel Framework
JavaScript
11,355
star
3

react-native-ui-kitten

💥 React Native UI Library based on Eva Design System 🌚✨Dark Mode
TypeScript
10,075
star
4

eva-icons

A pack of more than 480 beautifully crafted Open Source icons. SVG, Sketch, Web Font and Animations support.
TypeScript
8,560
star
5

nebular

💥 Customizable Angular UI Library based on Eva Design System 🌚✨Dark Mode
TypeScript
7,986
star
6

kittenTricks

React Native starter kit with over 40 screens and modern Light and Dark theme for creating stunning cross-platform mobile applications.
TypeScript
7,078
star
7

ng2-smart-table

Angular Smart Data Table component
TypeScript
1,624
star
8

react-native-reddit-reader

react native
JavaScript
359
star
9

polymer-admin

Polymer admin dashboard
HTML
296
star
10

angular-progress-button-styles

AngularJS version of codrops progress buttons for the use with promises
CSS
216
star
11

react-native-ui-kitten-demo-app

React Native UI-Kitten demo app
JavaScript
211
star
12

ngx-admin-dotnet-starter

TypeScript
179
star
13

chernika-mobile

Tinder-like app in Ionic framework
JavaScript
150
star
14

ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
TypeScript
58
star
15

digitsquare

Angular and Cordova / Phonegap powered hybrid mobile application (puzzle game)
C#
44
star
16

chernika-server

Node.js backend for chernika-mobile
JavaScript
33
star
17

akveo-react-native-boilerplate

JavaScript
27
star
18

nebular-seed

Angular + Nebular ❤️ seed project
TypeScript
19
star
19

doc-prsr

Simple parser to normalize typdoc and doc.js output
TypeScript
14
star
20

meetup-samples

TypeScript
13
star
21

cordova-vk

cordova/phonegap adapter for vksdk
Java
8
star
22

nebular-todo

Nebular TODO application showcase
TypeScript
6
star
23

styleguide

JavaScript
5
star
24

akveo-banner

TypeScript
4
star
25

akveo.github.io

HTML
4
star
26

nebular-icons

Nebular icons (deprecated - use Eva Icons instead - https://akveo.github.io/eva-icons/)
CSS
3
star
27

dotnet-starter-bundle

1
star