Giter Site home page Giter Site logo

WARN Looks like you're passing an inline function for 'component' prop for the screen 'sync' about react-native-curved-bottom-bar HOT 3 CLOSED

hoaphantn7604 avatar hoaphantn7604 commented on June 5, 2024
WARN Looks like you're passing an inline function for 'component' prop for the screen 'sync'

from react-native-curved-bottom-bar.

Comments (3)

muqureshiElm avatar muqureshiElm commented on June 5, 2024 1

Working fine when after I changed position value to upper case.

<CurvedBottomBar.Screen
...
position="LEFT"
options={{ headerShown: false }} // This is also available to you. Using this and the above in all caps fixed the bug for me.

Reference : #30

from react-native-curved-bottom-bar.

hochdyl avatar hochdyl commented on June 5, 2024

I also got this warning before. Here is how I fixed it :

You probably have something like that :

<CurvedBottomBar.Screen name="Home" position="LEFT" component={HomeScreen} />
or
<CurvedBottomBar.Screen name="Home" position="LEFT" component={() => <HomeScreen />} />

Change it like this :

<CurvedBottomBar.Screen name="Home" position="LEFT">
    {props => <HomeScreen {...props} />}
</CurvedBottomBar.Screen>

from react-native-curved-bottom-bar.

muqureshiElm avatar muqureshiElm commented on June 5, 2024

@hochdyl Warning disappeared but tabs are not visible. I tried to update to latest version but still.

1

from react-native-curved-bottom-bar.

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.