Closed Deboracgs closed 5 years ago
Had the exact same issue. Couldn't get v3.1.2 to work because of #357 and #358 so decided to downgrade back to 3.1.2, and then I had this same error you're seeing.
For me, running the following command worked: npm start -- --reset-cache
Hi @parasdaryanani @Deboracgs Thanks for report. Can you please provide related code?
expo r -c solved this issue for me
@artyorsh, here's my (shortened) code as requested:
import React from "react"
import { Image, Keyboard } from "react-native"
import { RkButton, RkText, RkTextInput, RkAvoidKeyboard } from 'react-native-ui-kitten'
class HomeScreen extends React.Component {
render() {
return (
<RkAvoidKeyboard
onStartShouldSetResponder={() => true}
onResponderRelease={() => Keyboard.dismiss()}
style={{ flex: 1, alignItems: "center", justifyContent: "center", margin: 10 }}>
<RkTextInput
rkType='rounded'
placeholder='Email'
autoCapitalize='none'
label={
<Icon
name='user'
color='#ccc'
style={{marginLeft: 10}}
/>
}
onChangeText={(email) => this.setState({email})}
value={this.state.email}
/>
<RkTextInput
rkType='rounded'
placeholder='Password'
autoCapitalize='none'
secureTextEntry={true}
label={
<Icon
name='lock1'
color='#ccc'
style={{marginLeft: 10}}
/>
}
onChangeText={(password) => this.setState({password})}
value={this.state.password}
/>
<RkButton
style={{marginTop: 30}}
rkType="primary rounded large stretch"
onPress={() => this.props.loginAxios(this.state.email, this.state.password)}
>
Login
</RkButton>
<RkButton
style={{marginTop: 10}}
rkType="clear rounded large stretch"
onPress={() => this.getData()}
>
<RkText>Reset Password</RkText>
</RkButton>
</RkAvoidKeyboard>
);
}
}
Hello,
I not using RKBadge, but when import and use RKTheme, i giving the same error
my package.json