[Styles] Switch to createThemedStylesheet
This commit is contained in:
parent
fee7f345fa
commit
d0f4e87475
2 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ export const channels = findByProps("getVoiceChannelId");
|
||||||
export const i18n = findByProps("Messages");
|
export const i18n = findByProps("Messages");
|
||||||
export const url = findByProps("openURL");
|
export const url = findByProps("openURL");
|
||||||
export const toasts = find(m => m.open && m.close && !m.startDrag && !m.init && !m.openReplay && !m.setAlwaysOnTop);
|
export const toasts = find(m => m.open && m.close && !m.startDrag && !m.init && !m.openReplay && !m.setAlwaysOnTop);
|
||||||
|
export const stylesheet = findByProps("createThemedStyleSheet");
|
||||||
|
|
||||||
// React
|
// React
|
||||||
export const React = findByProps("createElement") as typeof import("react");
|
export const React = findByProps("createElement") as typeof import("react");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Asset } from "@types";
|
import { Asset } from "@types";
|
||||||
import { ReactNative as RN } from "@metro/common";
|
import { ReactNative as RN, stylesheet } from "@metro/common";
|
||||||
import { showToast } from "@ui/toasts";
|
import { showToast } from "@ui/toasts";
|
||||||
import { getAssetIDByName } from "@ui/assets";
|
import { getAssetIDByName } from "@ui/assets";
|
||||||
import { Forms } from "@ui/components";
|
import { Forms } from "@ui/components";
|
||||||
|
@ -11,7 +11,7 @@ interface AssetDisplayProps {
|
||||||
|
|
||||||
const { FormRow } = Forms;
|
const { FormRow } = Forms;
|
||||||
|
|
||||||
const styles = RN.StyleSheet.create({
|
const styles = stylesheet.createThemedStyleSheet({
|
||||||
asset: {
|
asset: {
|
||||||
width: 32,
|
width: 32,
|
||||||
height: 32,
|
height: 32,
|
||||||
|
|
Loading…
Reference in a new issue