mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:53:24 +00:00
fix theme selector not working, add input styling
This commit is contained in:
25
apps/expo/src/components/ui/Input.tsx
Normal file
25
apps/expo/src/components/ui/Input.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Input, styled } from "tamagui";
|
||||
|
||||
export const MWInput = styled(Input, {
|
||||
variants: {
|
||||
type: {
|
||||
default: {
|
||||
backgroundColor: "$inputBackground",
|
||||
color: "$inputText",
|
||||
placeholderTextColor: "$placeHolderText",
|
||||
borderColor: "$inputBorder",
|
||||
outlineStyle: "none",
|
||||
},
|
||||
search: {
|
||||
backgroundColor: "$searchBackground",
|
||||
borderColor: "$colorTransparent",
|
||||
placeholderTextColor: "$searchPlaceholder",
|
||||
outlineStyle: "none",
|
||||
focusStyle: {
|
||||
borderColor: "$colorTransparent",
|
||||
backgroundColor: "$searchFocused",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user