import { StatusBar } from 'expo-status-bar'
import { useState } from 'react'
import { ScrollView, Text, useColorScheme, View } from 'react-native'
import {
FusionProvider,
FShell,
FButton,
FCard,
FInput,
FSwitch,
useFusionTheme,
} from '@rukkiecodes/native'
function Brand() {
const theme = useFusionTheme()
return (
FusionUI
)
}
function Screen() {
const theme = useFusionTheme()
const [count, setCount] = useState(0)
const [on, setOn] = useState(true)
return (
setCount(c => c + 1)}>
{`Clicked ${count}×`}
Notifications
)
}
export default function App() {
// Start in the device's theme, and follow it when the user switches. FusionProvider
// wraps the app once so every component reads the tokens; FShell frames the screen
// with the navbar, the content nestling in with the fluid goo corner (drawn with
// Skia from the shared shell engine).
const scheme = useColorScheme()
return (
} navbarHeight={56}>
{/* `auto` picks the bar style from the device theme. */}
)
}