mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add unistyles
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import React from "react";
|
||||
import { View } from "react-native";
|
||||
import { StyleSheet } from "react-native-unistyles";
|
||||
|
||||
export const Container = ({ children }: { children: React.ReactNode }) => {
|
||||
return <View style={styles.container}>{children}</View>;
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create((theme, rt) => ({
|
||||
container: {
|
||||
flex: 1,
|
||||
paddingBottom: rt.insets.bottom,
|
||||
backgroundColor: theme.colors.background,
|
||||
transform: [
|
||||
{
|
||||
translateY: rt.insets.ime * -1,
|
||||
},
|
||||
],
|
||||
},
|
||||
}));
|
||||
Reference in New Issue
Block a user