Animated SVG Weather Icons for React Native
yarn add react-native-weather-icons
or
npm i react-native-animated-weather-icons
import AnimatedWeatherIcon from 'react-native-animated-weather-icons';
Property | Type | Default | Description |
---|---|---|---|
weatherName | string | 'weather-sunny' | Specifies icon to show |
const App: () => Node = () => {
return (
<View>
<AnimatedWeatherIcon
weatherName="weather-sunny"
/>
</View>
)
}
Forked from react-native-animated-weather-icons by stan-sack
- Created a single component to use rather than having to import each different component in. Now the name can be passed into said singular component.
- Fixed an issue with snow icon not working due to path errors.
- Some other react-native issues that were causing errors.
- Specifying styles and colors
- Allowing options for animation looping, pausing, etc.