feat: auth screen with auto-redirect, sync favorites/history with backend

This commit is contained in:
nk
2026-06-02 19:12:07 +03:00
parent d4adb1e7be
commit a83672b455
2934 changed files with 97351 additions and 163 deletions

View File

@@ -0,0 +1,36 @@
---
title: Wrap Strings in Text Components
impact: CRITICAL
impactDescription: prevents runtime crash
tags: rendering, text, core
---
## Wrap Strings in Text Components
Strings must be rendered inside `<Text>`. React Native crashes if a string is a
direct child of `<View>`.
**Incorrect (crashes):**
```tsx
import { View } from 'react-native'
function Greeting({ name }: { name: string }) {
return <View>Hello, {name}!</View>
}
// Error: Text strings must be rendered within a <Text> component.
```
**Correct:**
```tsx
import { View, Text } from 'react-native'
function Greeting({ name }: { name: string }) {
return (
<View>
<Text>Hello, {name}!</Text>
</View>
)
}
```