mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-10 23:58:57 +08:00
21 lines
491 B
JavaScript
21 lines
491 B
JavaScript
import { StatusBar } from "expo-status-bar";
|
|
import { Text, View } from "react-native";
|
|
import { NativeWindStyleSheet } from "nativewind";
|
|
|
|
NativeWindStyleSheet.setOutput({
|
|
default: "native",
|
|
});
|
|
|
|
export default function App() {
|
|
return (
|
|
<View className="flex-1 items-center justify-center">
|
|
<View>
|
|
<Text style={{ elevation: 10 }}>
|
|
Open up App.js to start working on your app!
|
|
</Text>
|
|
</View>
|
|
<StatusBar style="auto" />
|
|
</View>
|
|
);
|
|
}
|