Code Monkey home page Code Monkey logo

Comments (5)

dannyhw avatar dannyhw commented on June 12, 2024 1

@cmw9706 the structure is not dependent on your folder structure it depends on the title in the meta (default export). If you want it to show in inputs you should make the title inputs/SearchInput

from react-native.

dannyhw avatar dannyhw commented on June 12, 2024 1

@cmw9706 I don't think thats actually the case, probably you're just getting an automatic title and if you removed the name property it would still be there.

Automatic titles can be generated by your folder structure if you don't have a title manually defined.

from react-native.

cmw9706 avatar cmw9706 commented on June 12, 2024

Oh snap - I realized that using the 'name:' property makes the component respect the folder structure but using title doesn't. I assume if I make the title as you say this will work properly, but if the behavior with the name property expected? I changed

  title: 'SearchInput',

to

  name: 'SearchInput',

And now my SearchInput is in the inputs directory

from react-native.

cmw9706 avatar cmw9706 commented on June 12, 2024

Is this documented somewhere?/Would there be a good place to document it?

from react-native.

dannyhw avatar dannyhw commented on June 12, 2024

The storybook website has some information about auto titles and this feature is copied from the web. Not sure if this needs to be added in this repo or not. Maybe at some point it makes sense to have a rn storybook documentation website.

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.