# Exercise

Build a `Loader` component that accepts one property: `show`. If `show` is set to `true` then it displays a pulsing pikachu otherwise it displays whatever content is passed in as `children`.

Modify the `Pokedex` & `PokemonDetails` components to use the `Loader`.

![](https://2121106575-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZp63Gm3O3A8Q8ddKvK%2F-LZp68a-SA_xLHt7vZ-w%2F-LZp6AER7tX9lUQUX9wc%2Floader.gif?generation=1551374275792305\&alt=media)

```javascript
<Loader show={ !pokemon.get('name') }>
  <ScrollView style={ styles.container }>
    <Sprites sprites={ pokemon.get('sprites') } />
    <BasicInfo { ...basicInfo } />
    <Header>STATS</Header>
    <Stats stats={ pokemon.get('stats') } />
    <Header>MOVES</Header>
    <Moves moves={ pokemon.get('moves') } />
  </ScrollView>
</Loader>
```
