Created
December 22, 2020 05:34
-
-
Save bharat-tiwari/962ff245ea73893a16a92d584e3a3d4e to your computer and use it in GitHub Desktop.
App component with NativeBase header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Button, Container, Header, Title, Content, Icon, Left, Right, Text, Body } from "native-base"; | |
import { React$Node } from './../TypesAndInterfaces/AppTypes'; | |
/** | |
* @name App | |
* @description App Component function | |
*/ | |
const App: () => React$Node = () => { | |
return ( | |
<Container style={{ backgroundColor: '#9FA8DA' }}> | |
<Header transparent> | |
<Left> | |
<Button transparent> | |
<Icon name="arrow-back" /> | |
</Button> | |
</Left> | |
<Body> | |
<Title>Transparent</Title> | |
</Body> | |
<Right> | |
<Button transparent> | |
<Text>Cancel</Text> | |
</Button> | |
</Right> | |
</Header> | |
<Content padder> | |
<Text> | |
Header with transparent prop | |
</Text> | |
</Content> | |
</Container> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment