mirror of
https://github.com/lemeow125/Reactnative-notesapp.git
synced 2025-04-11 20:41:23 +08:00
24 lines
737 B
TypeScript
24 lines
737 B
TypeScript
import * as React from "react";
|
|
import { View, Text, TextInput, ScrollView } from "react-native";
|
|
import styles from "../../styles";
|
|
import { NoteProps } from "../../Interfaces/Interfaces";
|
|
|
|
export default function PublicNote(props: NoteProps) {
|
|
return (
|
|
<View style={styles.addnotecont}>
|
|
<View style={styles.tle}>
|
|
<TextInput
|
|
style={styles.title}
|
|
value={props.title}
|
|
maxLength={20}
|
|
editable={false}
|
|
/>
|
|
</View>
|
|
<View style={styles.typehere}>
|
|
<ScrollView style={styles.typeinput} nestedScrollEnabled={true}>
|
|
<Text style={styles.typeinput}>{props.content}</Text>
|
|
</ScrollView>
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|