export default someclass extends React.component{
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide',keyboardhide);
}
keyboardhide(){
this.somefunc();
}
somefunc(){
if(mode=='up'){
  Animated.timing(
    this.state.animate.marginTop,
    {
      toValue:0,
      duration: 2000,
    }
  ).start();
  Animated.timing(
    this.state.animate.width,
    {
      toValue:this.screenmanipulate(100,'width'),
      duration: 2000,
    }
  ).start();
}
else {
  Animated.timing(
    this.state.animate.marginTop,
    {
      toValue:top,
      duration: 2000,
    }
  ).start();
  Animated.timing(
    this.state.animate.width,
    {
      toValue:width,
      duration: 2000,
    }
  ).start();
}    
render{
....
.....
}
if I keyboard is closed it throws an error that somefunc() is not defined, bu console.log() is working, I don't know where I am going wrong,
What i expected : the key event will trigger the animation
But what happened: Error undefined is not an object this.somefunc()
 
     
    