Skip to content

Commit

Permalink
feat(feed): compose snap component
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisCusihuaman committed Oct 19, 2023
1 parent 3361df2 commit 7afc030
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
63 changes: 63 additions & 0 deletions src/screens/feed/compose.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import {
faCalendarAlt,
faGlobe,
faImage,
faPollH,
faSmile,
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
import React from 'react';

import { Image, Text, TextInput, TouchableOpacity, View } from '@/ui';

export default function Compose() {
return (
<View className="my-auto w-full">
<View className="w-full rounded-xl">
<View className="flex flex-row p-4">
<View id="imagee">
<Image
className="h-10 w-10 rounded-full"
source={{
uri: 'https://avatars.githubusercontent.com/u/56934023?v=4',
}}
/>
</View>
<View id="textee" className="ml-3 flex w-full flex-col">
<TextInput
placeholder="What's happening?"
className="h-32 w-full resize-none text-xl outline-none"
/>

<TouchableOpacity className="-ml-4 pr-12 text-blue-400">
<Text className="inline rounded-full bg-blue-100 px-4 py-3">
<FontAwesomeIcon icon={faGlobe} /> Everyone can reply
</Text>
</TouchableOpacity>
</View>
</View>
<View className="flex flex-row items-center justify-between border-t border-gray-500 p-2 text-blue-400">
<View className="flex flex-row pl-12">
<TouchableOpacity className="flex items-center justify-center rounded-full bg-blue-100 p-3">
<FontAwesomeIcon icon={faImage} />
</TouchableOpacity>
<TouchableOpacity className="flex items-center justify-center rounded-full bg-blue-100 p-3">
<FontAwesomeIcon icon={faPollH} />
</TouchableOpacity>
<TouchableOpacity className="flex items-center justify-center rounded-full bg-blue-100 p-3">
<FontAwesomeIcon icon={faSmile} />
</TouchableOpacity>
<TouchableOpacity className="flex items-center justify-center rounded-full bg-blue-100 p-3">
<FontAwesomeIcon icon={faCalendarAlt} />
</TouchableOpacity>
</View>
<View>
<Text className="inline rounded-full bg-blue-300 px-4 py-3 font-bold text-white">
Tweet
</Text>
</View>
</View>
</View>
</View>
);
}
1 change: 1 addition & 0 deletions src/screens/feed/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './add-snap';
export * from './compose';
export * from './list';
export * from './snap';

0 comments on commit 7afc030

Please sign in to comment.