diff --git a/packages/rn-tester/js/examples/IntersectionObserver/IntersectionObserverMDNExample.js b/packages/rn-tester/js/examples/IntersectionObserver/IntersectionObserverMDNExample.js index 794a20f67abd6a..2aac729fcb4eee 100644 --- a/packages/rn-tester/js/examples/IntersectionObserver/IntersectionObserverMDNExample.js +++ b/packages/rn-tester/js/examples/IntersectionObserver/IntersectionObserverMDNExample.js @@ -17,7 +17,7 @@ import { useRef, useState, } from 'react'; -import {ScrollView, StyleSheet, Text, View} from 'react-native'; +import {Button, ScrollView, StyleSheet, Text, View} from 'react-native'; export const name = 'IntersectionObserver MDN Example'; export const title = name; @@ -33,25 +33,35 @@ export function render(): React.Node { */ function IntersectionObserverMDNExample(): React.Node { const theme = useContext(RNTesterThemeContext); + const [showMargin, setShowMargin] = useState(true); return ( +