Skip to content

Commit

Permalink
chore: added statusbar hidden in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanchitv3 committed Jan 16, 2025
1 parent b96d19e commit 6a8083e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
} from 'react-native';
import { transformedCode } from '../../utils';
import { useState } from 'react';
import { StatusBar } from 'expo-status-bar';

import {
CodePreview,
Expand Down Expand Up @@ -60,6 +61,7 @@ This is an illustration of **ImageViewer** component.
const Images = [{ id: 1, url: 'https://img.freepik.com/free-photo/young-boy-learning-how-ride-horse_23-2150460636.jpg' }];
return (
<Center>
<StatusBar hidden={visible}/>
<Pressable onPress={() => setVisible(true)}>
<Image
source={{ uri: Images[0].url }}
Expand Down Expand Up @@ -102,6 +104,7 @@ This is an illustration of **ImageViewer** component.
Pressable,
Image,
Center,
StatusBar,
},
argsType: {},
}}
Expand Down Expand Up @@ -360,6 +363,7 @@ import { CloseIcon, Icon } from '@/components/ui/icon';
import React, { useState } from 'react';
import { Pressable, Image } from 'react-native';
import { Center } from '@/components/ui/center';
import { StatusBar } from 'expo-status-bar';
```

<Wrapper>
Expand All @@ -377,6 +381,7 @@ import { Center } from '@/components/ui/center';
const Images = [{ id: 1, url: 'https://img.freepik.com/free-photo/young-boy-learning-how-ride-horse_23-2150460636.jpg' }];
return (
<Center>
<StatusBar hidden={visible}/>
<Pressable onPress={() => setVisible(true)}>
<Image
source={{ uri: Images[0].url }}
Expand Down Expand Up @@ -419,6 +424,7 @@ import { Center } from '@/components/ui/center';
Pressable,
Image,
Center,
StatusBar,
},
argsType: {},
}}
Expand Down

0 comments on commit 6a8083e

Please sign in to comment.