1- import * as React from 'react'
21import {
32 StyleSheet ,
43 ScrollView ,
@@ -57,7 +56,8 @@ import {
5756 ja ,
5857 th ,
5958} from 'react-native-paper-dates'
60- import { useCallback , useState } from 'react'
59+ import { useCallback , useMemo , useState } from 'react'
60+ import React from 'react'
6161
6262const presentationStyles = [ 'overFullScreen' , 'pageSheet' ] as const
6363const locales : [ string , TranslationsType ] [ ] = [
@@ -124,7 +124,7 @@ function App({
124124
125125 /** Constants. */
126126 const maxFontSizeMultiplier = 1.5
127- const dateFormatter = React . useMemo (
127+ const dateFormatter = useMemo (
128128 ( ) =>
129129 new Intl . DateTimeFormat ( locale , {
130130 day : 'numeric' ,
@@ -133,7 +133,7 @@ function App({
133133 } ) ,
134134 [ locale ]
135135 )
136- const timeFormatter = React . useMemo (
136+ const timeFormatter = useMemo (
137137 ( ) =>
138138 new Intl . DateTimeFormat ( locale , {
139139 hour : '2-digit' ,
@@ -570,7 +570,7 @@ function App({
570570
571571export default function AppWithProviders ( ) {
572572 const colorScheme = useColorScheme ( )
573- const [ materialYouEnabled , setMaterialYouEnabled ] = React . useState ( true )
573+ const [ materialYouEnabled , setMaterialYouEnabled ] = useState ( true )
574574 const m3Theme = colorScheme === 'dark' ? MD3DarkTheme : MD3LightTheme
575575 const m2Theme = colorScheme === 'dark' ? MD2LightTheme : MD2LightTheme
576576
0 commit comments