react-navigation / search-layout Goto Github PK
View Code? Open in Web Editor NEWA basic search screen layout for usage with React Navigation.
A basic search screen layout for usage with React Navigation.
Current example uses old version of package. Write a new working one. Keep it simple.
My react native app version is 0.59.10. The cancel button doesn't work on click.
It is possible to ad a gif to show the behaviour?
Thank you
It's pretty minimal right now
In Search Modal, using this.props.navigation.navigate("HomeTwo")
to jump to the specified page will automatically return to Main
, you can add multiple screens in Main in your case and try to jump
as:
const MainStack = StackNavigator(
{
Home: {
screen: Home
},
HomeTwo: {
screen: HomeTwo
},
},
...
);
const Navigation = StackNavigator(
{
Main: {
screen: MainStack,
},
Search: {
screen: SearchLayout
},
},
...
}
I've added the search-layout add on into a bare Expo project and I have to be installing its dependencies manually.
Shouldn't the package come with the packages that it depends on already set? or these dependencies (i.e: react-native-safe-area-view
) are expected to be already set it up by the dev when using react-navigation
.
Best ๐
Hey , thnx for the library
after following the readme and running the app with search layout am getting this
/Users/path../node_modules/react-navigation-addon-search-layout/index.js 1:20
Module parse failed: Unexpected token (1:20)
You may need an appropriate loader to handle this file type.
> export default from "./src/SearchLayout";
this error won't stop the app from running or functioning probably on mobile (though i get the error on the logs),
but it will stop it if i run the app with
expo start --web
Regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.