The user expects strict adherence to the following coding, formatting, and behavioral rules in this repository:
") instead of single quotes for all strings and imports.useContext, useState, useNavigation, useLayoutEffect). Do not group them tightly together without empty lines.Array Destructuring: When destructuring arrays (such as from useState), place the opening bracket on one line, each destructured item on its own separate line, and the closing bracket on its own line.
Example:
const [
title,
setTitle
] = useState<string>("");
Main Component / Object Export: Always define the main component or object as a variable/arrow function (e.g., const PageName = () => { ... } or const stylesheet = StyleSheet.create({ ... })) and place the export default PageName; or export default stylesheet; at the very bottom of the file. Do not use export default function PageName() or inline export default StyleSheet.create(...).
Top-level Blank Lines: Top-level variables, arrays, types, and functions located outside of the main component must be separated by an empty line. Do not group them without new lines.
No any with localize: Never use as any when calling the localize function (e.g., use localize("key") instead of localize("key" as any)). The any type is strictly forbidden.
String Interpolation: Use template literals (`${...}`) for string concatenation instead of the + operator.
yarn run eslint --fix <file> or yarn run eslint <file> after making code edits to ensure strict ESLint compliance.tsc or IDE feedback). Do not ignore any or strict typing constraints.Always follow these rules by default. Pay "extreme attention" (aşırı dikkat) to the sorting rules, ESLint, and TS constraints during modifications.
multi_replace_file_content or attempt to edit multiple files in a single pass. The user explicitly bans batch operations ("Toplu işlemi yasaklıyorum").stylesheet.ts, you MUST use semantic naming based on the object or component being styled, NOT based on the style values.flex1, fullWidth, transparentBackgroundcontainer, content, titleContainer, title, emptyCheckIcon<View> in a component is usually container. A wrapper for content is contentContainer. A view wrapping a title is titleContainer. Always look at the semantic purpose of the element in the UI hierarchy.