这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions docs/boilerplate/app/utils/Utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,6 @@ Every app needs a junk drawer. Here you can find a library of utilities that are
We sometimes create a separate `app/hooks` folder just for hooks. This is a matter of preference.
:::

### useAppTheme

A hook that returns various properties and tools relating to theming your app.

```tsx
const { themed, themeContext } = useAppTheme()

const $themedStyle: ThemedStyle<ViewStyle> = (theme) =({
backgroundColor: theme.colors.background
})

<View style={themed($themedStyle)}>
<Text>{themeContext}</Text>
</View>
```

[Full `useAppTheme`](./useAppTheme.tsx.md)

### useSafeAreaInsetsStyle

A hook can be used to create a safe-area-aware style object that can be passed directly to a View.
Expand Down