刚开始学习react native,就被这个错误卡住了。IOS App emulatorTerminal
import React from "react";
import { StyleSheet, Text, View } from 'react-native';
import tw from "tailwind-rn"
export default function App() {
return (
<View style={tw("flex-1 justify-center items-center")}>
<Text>Hello</Text>
<button title="Click me" />
</View>
);
}
想试试顺风。已安装所有依赖项。
1条答案
按热度按时间e4yzc0pl1#
tailwind-rn
的用法说明你应该导入useTailwind
钩子: