feat: currently playing floating bar

This commit is contained in:
Fredrik Burmester
2024-08-12 14:03:22 +02:00
parent ed301a9152
commit 49c95a091c
11 changed files with 519 additions and 125 deletions

View File

@@ -1,11 +1,17 @@
import React from "react";
import React, { useEffect } from "react";
import { TextInputProps, TextProps } from "react-native";
import { TextInput } from "react-native";
export function Input(props: TextInputProps) {
const { style, ...otherProps } = props;
const inputRef = React.useRef<TextInput>(null);
useEffect(() => {
inputRef.current?.focus();
}, []);
return (
<TextInput
ref={inputRef}
className="p-4 border border-neutral-800 rounded-xl bg-neutral-900"
allowFontScaling={false}
style={[{ color: "white" }, style]}