22 lines
504 B
TypeScript
22 lines
504 B
TypeScript
|
import { useState } from "react";
|
||
|
import { Text } from "react-native";
|
||
|
import { View } from "react-native-reanimated/lib/typescript/Animated";
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
export const BlockNoteView = (text : string) => {
|
||
|
const [_text, _setText] = useState(text);
|
||
|
|
||
|
return (
|
||
|
<View
|
||
|
style={{
|
||
|
flexDirection: 'row',
|
||
|
height: 150,
|
||
|
padding: 20,
|
||
|
borderRadius: 10,
|
||
|
}}>
|
||
|
<Text>{_text}</Text>
|
||
|
</View>
|
||
|
);
|
||
|
}
|