New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
withAuthenticator warning: A component is changing an uncontrolled input of type text to be controlled. #13337
Comments
Hey there, @juri-diener 馃憢. Looks like we may need a little more info about what's happening to cause this, your local setup, etc. Can you clarify what version of Amplify you're on and share any relevant frontend code that's causing this? Also, can you share your full |
Hey, so the amplify version is 11.0.5 I had issues with the new one. And someone told me to use this version because it's kinda more stable. ` import { signOut } from "aws-amplify/auth"; import AntDesign from "@expo/vector-icons/AntDesign"; import { Amplify } from "aws-amplify"; Amplify.configure(amplifyconfig); import { color } from "@/styles/colors"; function RootLayout() { return ( // export default RootLayout; And my package.json: ` ` |
Hey,
Here's my import { useEffect } from 'react'
import { SafeAreaView } from 'react-native-safe-area-context'
import { MD3LightTheme as DefaultTheme, PaperProvider } from 'react-native-paper'
import FontAwesome from '@expo/vector-icons/FontAwesome'
import { useFonts } from 'expo-font'
import { Stack } from 'expo-router'
import * as SplashScreen from 'expo-splash-screen'
import { Authenticator } from '@aws-amplify/ui-react-native'
import { Amplify } from 'aws-amplify'
import config from '../src/aws-exports'
Amplify.configure(config)
export {
// Catch any errors thrown by the Layout component.
ErrorBoundary,
} from 'expo-router'
export const unstable_settings = {
// Ensure that reloading on `/modal` keeps a back button present.
initialRouteName: '(tabs)',
}
// Prevent the splash screen from auto-hiding before asset loading is complete.
SplashScreen.preventAutoHideAsync()
export default function RootLayout() {
const [loaded, error] = useFonts({
SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'),
...FontAwesome.font,
})
// Expo Router uses Error Boundaries to catch errors in the navigation tree.
useEffect(() => {
if (error) throw error
}, [error])
useEffect(() => {
if (loaded) {
SplashScreen.hideAsync()
}
}, [loaded])
if (!loaded) {
return null
}
return <RootLayoutNav />
}
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: '#0b0',
secondary: 'yellow',
},
}
function RootLayoutNav() {
return (
<Authenticator.Provider>
<Authenticator>
<SafeAreaView>
<PaperProvider theme={theme}>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
</Stack>
</PaperProvider>
</SafeAreaView>
</Authenticator>
</Authenticator.Provider>
)
}
|
This is issue is still there. But only on the web. when I start typing something in that input, the warning pops up as well when pasting something.
Originally posted by @chrisbonifacio in #9460 (comment)
The text was updated successfully, but these errors were encountered: