
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
react-native-base-skeleton
Advanced tools
#react-native-base-skeleton
make skeleton in your react-native.
This component is based on native-base
##Install
npm install react-native-base-skeleton
##Why use this native-base has same component. But components are restrictions(ex: header has always 3 components, all components are NBComponent). If you want to use native-base's structure, this module is good.
##Container
<Header>
, <Content>
, <Footer>
, and <Overlay>
##Header
##Footer
##Content
##Overlay
##Example
import React, {
Component
} from 'react'
import {
Text,
} from 'react-native'
import {
Container,
Header,
Content,
Footer,
Overlay
} from 'react-native-base-skeleton'
class example extends Component {
render() {
return (
<Container>
<Header>
<Text>header</Text>
</Header>
<Content></Content>
<Footer>
<Text>footer</Text>
</Footer>
<Overlay></Overlay>
</Container>
)
}
}
If you want to use custom component, just add attribute. header, content, footer, overlay.
class example extends Component {
render() {
return (
<Container>
<CustomHeader header={true}>
<Text>header</Text>
</CustomHeader>
<CustomContent contnet={true}></CustomContent>
<CustomFooter footer={true}>
<Text>footer</Text>
</CustomFooter>
<CustomOverlay overlay={true}></CustomOverlay>
</Container>
)
}
##styles ###default Header Style
{
backgroundColor: '#0AA',
justifyContent: (!Array.isArray(this.props.children)) ? 'center' : 'space-between',
flexDirection: 'row',
alignItems: 'center',
paddingHorizontal: 15,
paddingTop: (Platform.OS === 'ios' ) ? 15 : 0,
shadowColor: '#000',
shadowOffset: {width: 0, height: 2},
shadowOpacity: 0.1,
shadowRadius: 1.5,
height: (Platform.OS === 'ios' ) ? 70 : 55,
elevation: 2
}
###default Footer Style
{
shadowColor: '#000',
shadowOffset: {width: 0, height: 2},
shadowOpacity: 0.1,
shadowRadius: 1.5,
height: 55,
flexDirection: 'row'
}
###default content Style
let defaulContentContainerStyle= {
padding: 10,
}
let defaultStyle = {
flex : 1,
backgroundColor: '#fff'
}
###default Overlay Style
{
flex: 0
}
FAQs
make skeleton in react native
The npm package react-native-base-skeleton receives a total of 3 weekly downloads. As such, react-native-base-skeleton popularity was classified as not popular.
We found that react-native-base-skeleton demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.