Skip to content

Commit 48e50f2

Browse files
committed
refactor(container): replace inline styles with a dedicated style for page container
1 parent 99f8f3f commit 48e50f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Container.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ export const Container = React.memo(
436436
>
437437
{tabNamesArray.map((tabName, i) => {
438438
return (
439-
<View key={i} style={{ height: '100%', width: '100%' }}>
439+
<View key={i} style={styles.pageContainer}>
440440
<TabNameContext.Provider value={tabName}>
441441
<Lazy
442442
startMounted={lazy ? undefined : true}
@@ -466,6 +466,10 @@ const styles = StyleSheet.create({
466466
container: {
467467
flex: 1,
468468
},
469+
pageContainer: {
470+
height: '100%',
471+
width: '100%',
472+
},
469473
topContainer: {
470474
position: 'absolute',
471475
zIndex: 100,

0 commit comments

Comments
 (0)