Skip to content

Unwanted console log: 'returning no layout #94

@sanish-vs

Description

@sanish-vs

Describe the bug

When using Tabs / TabScreen, the console outputs the following line on every render:

LOG  returning no layout

This happens even when the component works correctly. It seems to be a stray debug log left in the codebase.


Expected behavior

No debug console logs should appear in production or development unless explicitly enabled via a prop or debug flag.


Steps to reproduce

  1. Install react-native-paper-tabs
  2. Use TabsProvider, Tabs, and TabScreen as per the docs
  3. Run the app (Android / iOS)
  4. Observe console output

Screenshots / Logs

Console output:

LOG  returning no layout

Environment

  • react-native-paper-tabs: 0.11.4
  • react-native-pager-view: 6.7.1
  • react-native: [your version here]
  • Platform: Android (and possibly iOS)

Cause

Likely a stray console.log("returning no layout") left in the layout calculation file.


Suggested fix

Remove the console.log from the relevant file so it doesn’t spam developer logs.


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions