Home > Software design >  Invalid props provided to navigation action at Object.executeAction
Invalid props provided to navigation action at Object.executeAction

Time:09-27

I am working on BlueBase Framework which is based on React and React-Native. I have Followed Documentation on enter image description here

import { createPlugin } from '@bluebase/core';
import { ToDoAppIcon } from './components/ToDoAppIcon';
import { PendingTasksScreen } from './screens/PendingTasksScreen';
import { EditTaskScreen} from "./screens/EditTaskScreen";
import { routes } from './routes';

export default createPlugin({
     key: 'tasks',
     name: 'Tasks',
     description: 'A todo app made with BlueBase framework.',

     // ... Other plugin properties

     indexRoute: 'TasksApp',

     components: {
         // Components
         ToDoAppIcon,

         // Screens
         PendingTasksScreen,
         EditTaskScreen,
     },

     icon: {
         component: 'ToDoAppIcon',
         type: 'component',
     },

     indexRoute: 'TasksApp',

     routes,
 });

CodePudding user response:

You need to Import CreateTaskScreen and also add this under components object.

Also, you can replace your code with

import { createPlugin } from '@bluebase/core';
import { ToDoAppIcon } from './components/ToDoAppIcon';
import { PendingTasksScreen } from './screens/PendingTasksScreen';
import { EditTaskScreen} from "./screens/EditTaskScreen";
import { CreateTaskScreen} from "./screens/CreateTaskScreen";
import { routes } from './routes';

export default createPlugin({
    key: 'tasks',
    name: 'Tasks',
    description: 'A todo app made with BlueBase framework.',

    // ... Other plugin properties

    indexRoute: 'TasksApp',

    components: {
        // Components
        ToDoAppIcon,

        // Screens
        PendingTasksScreen,
        EditTaskScreen,
        CreateTaskScreen
    },

    icon: {
        component: 'ToDoAppIcon',
        type: 'component',
    },

    indexRoute: 'TasksApp',

    routes,
});

I hope this will help you.

  • Related