Browse Source

Changing TextInput shadow lib

master
GabrielTrettel 3 years ago
parent
commit
a453f48a55
  1. 3
      src/app/components/TextInput.js

3
src/app/components/TextInput.js

@ -3,7 +3,6 @@ import { View, TextInput, StyleSheet } from "react-native";
import { MaterialCommunityIcons } from "@expo/vector-icons"; import { MaterialCommunityIcons } from "@expo/vector-icons";
import colors from "../config/colors"; import colors from "../config/colors";
import defaultStyles from "../config/styles"; import defaultStyles from "../config/styles";
import { Shadow } from "react-native-shadow-2";
function AppTextInput({ icon, width = "100%", ...otherProps }) { function AppTextInput({ icon, width = "100%", ...otherProps }) {
return ( return (
@ -28,6 +27,8 @@ function AppTextInput({ icon, width = "100%", ...otherProps }) {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
...defaultStyles.shadow, ...defaultStyles.shadow,
flexDirection: "row",
alignItems: "center",
backgroundColor: colors.white, backgroundColor: colors.white,
borderRadius: 6, borderRadius: 6,
borderColor: colors.grayBG, borderColor: colors.grayBG,

Loading…
Cancel
Save