Skip to content

Commit 7fde972

Browse files
committed
new: Placeholder has the color animation now
1 parent 709d457 commit 7fde972

File tree

6 files changed

+52
-134
lines changed

6 files changed

+52
-134
lines changed

lib/FunctionalComponent/Size.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

lib/FunctionalComponent/Text.tsx

Lines changed: 0 additions & 40 deletions
This file was deleted.

lib/InteractiveTextInput.style.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { ViewStyle, TextStyle, StyleSheet } from "react-native";
2+
import { ImageStyle } from "react-native-fast-image";
3+
4+
interface Style {
5+
container: ViewStyle;
6+
}
7+
8+
export default StyleSheet.create<Style>({
9+
container: {},
10+
});

lib/InteractiveTextInput.tsx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import React from "react";
2+
import {
3+
View,
4+
Dimensions,
5+
StyleProp,
6+
TextInput,
7+
TextInputProps,
8+
ViewStyle,
9+
} from "react-native";
10+
/**
11+
* ? Local Imports
12+
*/
13+
import styles from "./InteractiveTextInput.style";
14+
15+
const { width: ScreenWidth, height: ScreenHeight } = Dimensions.get("screen");
16+
17+
type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>;
18+
19+
interface IInteractiveTextInputProps extends TextInputProps {
20+
style?: CustomStyleProp;
21+
}
22+
23+
const InteractiveTextInput: React.FC<IInteractiveTextInputProps> = ({
24+
style,
25+
}) => {
26+
return (
27+
<TextInput
28+
style={{
29+
height: 50,
30+
width: ScreenWidth * 0.9,
31+
backgroundColor: "#f5f6f8",
32+
paddingLeft: 8,
33+
paddingRight: 8,
34+
borderRadius: 8,
35+
justifyContent: "center",
36+
}}
37+
placeholder="Email"
38+
/>
39+
);
40+
};
41+
42+
export default InteractiveTextInput;

lib/StateFulComponent/Hello.tsx

Lines changed: 0 additions & 83 deletions
This file was deleted.

lib/index.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)