Skip to content

Commit

Permalink
chore: Remove StyleSheet.create usage
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Dec 31, 2024
1 parent b82fc13 commit 4979133
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions packages/components/navigation/components/SideNotch.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { StyleSheet, View, ViewStyle } from "react-native";
import { View, ViewStyle } from "react-native";

import SideNotchSVG from "../../../../assets/sidebar/side-notch.svg";
import { SVG } from "../../SVG";
Expand All @@ -11,24 +11,23 @@ export const SideNotch: React.FC<{
style?: ViewStyle;
}> = ({ sidebarItemId, style }) => {
return (
<View style={[styles.container, style]}>
<View
style={[
{
position: "absolute",
flex: 1,
flexDirection: "row",
left: 0,
top: 0,
bottom: 0,
},
style,
]}
>
<SVG
source={SideNotchSVG}
color={sidebarItemId === "rakki" ? rakkiYellow : primaryColor}
/>
</View>
);
};

// FIXME: remove StyleSheet.create
// eslint-disable-next-line no-restricted-syntax
const styles = StyleSheet.create({
container: {
position: "absolute",
flex: 1,
flexDirection: "row",
left: 0,
top: 0,
bottom: 0,
},
});

0 comments on commit 4979133

Please sign in to comment.