diff --git a/docs/next/accessibilityinfo.html b/docs/next/accessibilityinfo.html index c95ac9d3bdd..53ec5f6f166 100644 --- a/docs/next/accessibilityinfo.html +++ b/docs/next/accessibilityinfo.html @@ -85,7 +85,7 @@ import React, { useState, useEffect } from "react"; import { AccessibilityInfo, View, Text, StyleSheet } from "react-native"; -export default function App() { +const App = () => { const [reduceMotionEnabled, setReduceMotionEnabled] = useState(false); const [screenReaderEnabled, setScreenReaderEnabled] = useState(false); @@ -148,10 +148,12 @@ margin: 30 } }); + +export default App;

import React, { useState, useEffect } from "react"; import { AccessibilityInfo, View, Text, StyleSheet } from "react-native"; -export default function App() { +const App = () => { const [reduceMotionEnabled, setReduceMotionEnabled] = useState(false); const [screenReaderEnabled, setScreenReaderEnabled] = useState(false); @@ -148,10 +148,12 @@ margin: 30 } }); + +export default App;

const window = Dimensions.get("window"); const screen = Dimensions.get("screen"); -export default function App() { +const App = () => { const [dimensions, setDimensions] = useState({ window, screen }); const onChange = ({ window, screen }) => { @@ -128,10 +128,12 @@ alignItems: "center" } }); + +export default App;
const window = Dimensions.get("window"); const screen = Dimensions.get("screen"); -export default class App extends Component { +class App extends Component { state = { dimensions: { window, @@ -189,10 +191,12 @@ alignItems: "center" } }); + +export default App;
const window = Dimensions.get("window"); const screen = Dimensions.get("screen"); -export default function App() { +const App = () => { const [dimensions, setDimensions] = useState({ window, screen }); const onChange = ({ window, screen }) => { @@ -128,10 +128,12 @@ alignItems: "center" } }); + +export default App;
const window = Dimensions.get("window"); const screen = Dimensions.get("screen"); -export default class App extends Component { +class App extends Component { state = { dimensions: { window, @@ -189,10 +191,12 @@ alignItems: "center" } }); + +export default App;
import React, { useEffect } from "react"; import { Keyboard, TextInput, StyleSheet } from "react-native"; -export default function Example() { +const Example = () => { useEffect(() => { Keyboard.addListener("keyboardDidShow", _keyboardDidShow); @@ -120,10 +120,11 @@ const s = StyleSheet.create({ } }) +export default Example;
import React, { useEffect } from "react"; import { Keyboard, TextInput, StyleSheet } from "react-native"; -export default function Example() { +const Example = () => { useEffect(() => { Keyboard.addListener("keyboardDidShow", _keyboardDidShow); @@ -120,10 +120,11 @@ const s = StyleSheet.create({ } }) +export default Example;
export default App; -

-
true); } -export default function App() { +const App = () => { const [firstBoxPosition, setFirstBoxPosition] = useState("left"); const [secondBoxPosition, setSecondBoxPosition] = useState("left"); const [thirdBoxPosition, setThirdBoxPosition] = useState("left"); @@ -516,10 +519,12 @@ const styles = StyleSheet.create({ alignSelf: "center" } }); + +export default App;
true); } -export default class App extends Component { +class App extends Component { state = { firstBoxPosition: "left", secondBoxPosition: "left", @@ -635,10 +640,12 @@ const styles = StyleSheet.create({ alignSelf: "center" } }); + +export default App;
export default App; -

-
true); } -export default function App() { +const App = () => { const [firstBoxPosition, setFirstBoxPosition] = useState("left"); const [secondBoxPosition, setSecondBoxPosition] = useState("left"); const [thirdBoxPosition, setThirdBoxPosition] = useState("left"); @@ -516,10 +519,12 @@ const styles = StyleSheet.create({ alignSelf: "center" } }); + +export default App;
true); } -export default class App extends Component { +class App extends Component { state = { firstBoxPosition: "left", secondBoxPosition: "left", @@ -635,10 +640,12 @@ const styles = StyleSheet.create({ alignSelf: "center" } }); + +export default App;
export default App; - const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center" }, }); + +export default App;
export default App; - const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center" }, }); + +export default App;
height: size }; -export default App = () => ( +const App = () => ( <ScrollView style={styles.scrollContainer}> <View style={styles.container}> <Text>Current Pixel Ratio is:</Text> @@ -140,10 +140,12 @@ const styles = StyleSheet.create({ marginTop: 4 } }); + +export default App;
height: size }; -export default App = () => ( +const App = () => ( <ScrollView style={styles.scrollContainer}> <View style={styles.container}> <Text>Current Pixel Ratio is:</Text> @@ -140,10 +140,12 @@ const styles = StyleSheet.create({ marginTop: 4 } }); + +export default App;
Edit

Shadow Props

Edit

Shadow Props

-

-