Projekt

Obecné

Profil

Stáhnout (417 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import { HStack, Box, Text } from "native-base";
2
import { Note } from "../../types/note";
3

    
4
const NoteView = (props: { note: Note }) => {
5
    const note = props.note;
6
    return (
7
        <HStack>
8
            <Box width="5%" />
9
            <Box width="30%">
10
                <Text bold>{note.username}</Text>
11
            </Box>
12

    
13
            <Text>{note.note}</Text>
14
        </HStack>
15
    );
16
}
17

    
18
export default NoteView
19

    
(1-1/2)