Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
design example
Browse files Browse the repository at this point in the history
  • Loading branch information
benevbright committed Oct 17, 2020
1 parent 602bcc5 commit 22f9c8d
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion example/src/BigHeaderScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Animated, Image, TouchableOpacity } from 'react-native';
import { Animated, View, Text, Image, TouchableOpacity } from 'react-native';
import { StackNavigationProp } from '@react-navigation/stack';
import { useCollapsibleBigHeader } from 'react-navigation-collapsible';

Expand Down Expand Up @@ -33,6 +33,30 @@ const BigHeaderScreen = ({ navigation }: ScreenProps) => {
}}
style={{ flex: 1 }}
/>
<View
style={{
position: 'absolute',
width: '100%',
alignItems: 'center',
top: 80,
}}>
<Image
source={{
uri:
'https://media.istockphoto.com/vectors/default-profile-picture-avatar-photo-placeholder-vector-illustration-vector-id1223671392?b=1&k=6&m=1223671392&s=612x612&w=0&h=5VMcL3a_1Ni5rRHX0LkaA25lD_0vkhFsb1iVm1HKVSQ=',
}}
style={{
width: 100,
height: 100,
borderColor: 'lightgray',
borderWidth: 6,
borderRadius: 50,
}}
/>
<Text style={{ fontSize: 22, color: 'white', marginTop: 16 }}>
Hello, Big Header.
</Text>
</View>
</TouchableOpacity>
),
collapsedColor: 'white',
Expand Down

0 comments on commit 22f9c8d

Please sign in to comment.