Posts

Showing posts from January 5, 2019

Undefined is not an object (evaluating 'this.props.navigation.navigate') React native

Image
0 what I'm trying to do is to custom android back buttom, so when I'm in a screen, when I press the back button, the screen must navigate through the MyProducts , but I'm receiving this error import React, { Component } from 'react'; import { View, StyleSheet, Text, Keyboard, Animated } from 'react-native'; import { Textarea, Form, Item, Input, Label, Button } from 'native-base'; import jwt_decode from 'jwt-decode'; class CreateProduct extends Component { constructor(props) { super(props); this.keyboardHeight = new Animated.Value(0); this.imageHeight = new Animated.Value(199); this.state = { isButtonsHidden: false, title: null, description: '', isDialogVisible: false, messageError: '', };