Skip to content

Commit 0e90f72

Browse files
committed
Merge remote-tracking branch 'upstream/main' into production
2 parents d2d23a0 + a6a9e8b commit 0e90f72

791 files changed

Lines changed: 145568 additions & 146132 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/_fabric-native-components.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import IOSContent from './fabric-native-components-ios.md';
32
import AndroidContent from './fabric-native-components-android.md';
43

docs/_integration-with-existing-apps-ios.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ AppRegistry.registerComponent('HelloWorld', () => App);
159159
Let's create an `App.tsx` file. This is a [TypeScript](https://www.typescriptlang.org/) file that can have [JSX](<https://en.wikipedia.org/wiki/JSX_(JavaScript)>) expressions. It contains the root React Native component that we will integrate into our iOS application (<RNTemplateRepoLink href="template/App.tsx">link</RNTemplateRepoLink>):
160160

161161
```tsx
162-
import React from 'react';
162+
import {type JSX} from 'react';
163163
import {
164164
SafeAreaView,
165165
ScrollView,
@@ -177,7 +177,7 @@ import {
177177
ReloadInstructions,
178178
} from 'react-native/Libraries/NewAppScreen';
179179

180-
function App(): React.JSX.Element {
180+
function App(): JSX.Element {
181181
const isDarkMode = useColorScheme() === 'dark';
182182

183183
const backgroundStyle = {

docs/_integration-with-existing-apps-kotlin.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ AppRegistry.registerComponent('HelloWorld', () => App);
192192
Let's create an `App.tsx` file. This is a [TypeScript](https://www.typescriptlang.org/) file that can have [JSX](<https://en.wikipedia.org/wiki/JSX_(JavaScript)>) expressions. It contains the root React Native component that we will integrate into our Android application (<RNTemplateRepoLink href="template/App.tsx">link</RNTemplateRepoLink>):
193193

194194
```tsx
195-
import React from 'react';
195+
import {type JSX} from 'react';
196196
import {
197197
SafeAreaView,
198198
ScrollView,
@@ -202,15 +202,14 @@ import {
202202
useColorScheme,
203203
View,
204204
} from 'react-native';
205-
206205
import {
207206
Colors,
208207
DebugInstructions,
209208
Header,
210209
ReloadInstructions,
211210
} from 'react-native/Libraries/NewAppScreen';
212211

213-
function App(): React.JSX.Element {
212+
function App(): JSX.Element {
214213
const isDarkMode = useColorScheme() === 'dark';
215214

216215
const backgroundStyle = {

docs/_turbo-native-modules-components.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import IOSContent from './turbo-native-modules-ios.md';
32
import AndroidContent from './turbo-native-modules-android.md';
43

docs/accessibilityinfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Sometimes it's useful to know whether or not the device has a screen reader that
88
## Example
99

1010
```SnackPlayer name=AccessibilityInfo%20Example&supportedPlatforms=android,ios
11-
import React, {useState, useEffect} from 'react';
11+
import {useState, useEffect} from 'react';
1212
import {AccessibilityInfo, Text, StyleSheet} from 'react-native';
1313
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
1414

docs/actionsheetios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Displays native to iOS [Action Sheet](https://developer.apple.com/design/human-i
88
## Example
99

1010
```SnackPlayer name=ActionSheetIOS%20Example&supportedPlatforms=ios
11-
import React, {useState} from 'react';
11+
import {useState} from 'react';
1212
import {ActionSheetIOS, Button, StyleSheet, Text} from 'react-native';
1313
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
1414

docs/activityindicator.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Displays a circular loading indicator.
88
## Example
99

1010
```SnackPlayer name=ActivityIndicator%20Example
11-
import React from 'react';
1211
import {ActivityIndicator, StyleSheet} from 'react-native';
1312
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
1413

docs/alert.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ This is an API that works both on Android and iOS and can show static alerts. Al
1212
## Example
1313

1414
```SnackPlayer name=Alert%20Example&supportedPlatforms=ios,android
15-
import React from 'react';
1615
import {StyleSheet, Button, Alert} from 'react-native';
1716
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
1817
@@ -81,7 +80,6 @@ The cancel event can be handled by providing an `onDismiss` callback property in
8180
### Example <div className="label android">Android</div>
8281

8382
```SnackPlayer name=Alert%20Android%20Dissmissable%20Example&supportedPlatforms=android
84-
import React from 'react';
8583
import {StyleSheet, Button, Alert} from 'react-native';
8684
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
8785

docs/animated.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Don't modify the animated value directly. You can use the [`useRef` Hook](https:
1616
The following example contains a `View` which will fade in and fade out based on the animated value `fadeAnim`
1717

1818
```SnackPlayer name=Animated%20Example
19-
import React from 'react';
2019
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
2120
import {
2221
Animated,

docs/animatedvaluexy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Animated.ValueXY
88
## Example
99

1010
```SnackPlayer name=Animated.ValueXY%20Example
11-
import React, {useRef} from 'react';
11+
import {useRef} from 'react';
1212
import {Animated, PanResponder, StyleSheet} from 'react-native';
1313
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
1414

0 commit comments

Comments
 (0)