feat(companion): implement ble
This commit is contained in:
19
aris/apps/companion/components/safe-area-scroll-view.tsx
Normal file
19
aris/apps/companion/components/safe-area-scroll-view.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ScrollView } from "react-native";
|
||||
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||
|
||||
export function SafeAreaScrollView({ children }: React.PropsWithChildren) {
|
||||
const insets = useSafeAreaInsets();
|
||||
|
||||
return (
|
||||
<ScrollView
|
||||
style={{
|
||||
paddingTop: insets.top,
|
||||
paddingBottom: insets.bottom,
|
||||
paddingLeft: insets.left,
|
||||
paddingRight: insets.right,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user