Code Monkey home page Code Monkey logo

Comments (6)

msachi avatar msachi commented on June 12, 2024 1

Ah got you, thanks!

And actually what I wanted was for it to show up from the bottom, which can be achieved with isSplitPanelVisible: true.

🙌

from react-native.

dannyhw avatar dannyhw commented on June 12, 2024

There is not really a manager/preview separation on react native storybook since there's no iframe to isolate the preview.

In some ways you can consider everything the preview. What do you want to configure with this manager.js file?

from react-native.

msachi avatar msachi commented on June 12, 2024

Oh I see. Basically I'd like to configure some of these, e.g. whether the controls panel is open by default etc.

{
  isFullscreen: false,
  showNav: true,
  showPanel: true,
  panelPosition: 'bottom',
  enableShortcuts: true,
  showToolbar: true,
  theme: undefined,
  selectedPanel: undefined,
  initialActive: 'sidebar',
  sidebar: {
    showRoots: false,
    collapsedRoots: ['other'],
  },
  toolbar: {
    title: { hidden: false },
    zoom: { hidden: false },
    eject: { hidden: false },
    copy: { hidden: false },
    fullscreen: { hidden: false },
  },
}

from react-native.

dannyhw avatar dannyhw commented on June 12, 2024

Well most of those don't really apply though you can set the initial tab in the parameters of the getStorybookUI function

from react-native.

msachi avatar msachi commented on June 12, 2024

So there is no way to keep the addon panel (with controls etc) open by default?

from react-native.

dannyhw avatar dannyhw commented on June 12, 2024

yes sorry if I wasn't clear but thats what I was saying.

getStorybookUI({
    tabOpen: 1  // -- which tab should be open. -1 Sidebar, 0 Canvas, 1 Addons
})

from react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.