Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 270 Bytes

relative-position-header.md

File metadata and controls

14 lines (11 loc) · 270 Bytes

With React Native column flex layout in nature, you can simply create a fixed header by giving it a relative position.

Code:


const styles = StyleSheet.create({
    fixedHeader: {
        position: 'relative',
        top: 0,
        left: 0
    }
})