Moxitech-Websocket-Do/frontend/components/BlockNoteView.tsx

22 lines
504 B
TypeScript
Raw Normal View History

2024-09-01 02:36:40 +07:00
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>
);
}