check nan in react native
…