GithubHelp home page GithubHelp logo

alessiocancian / react-native-side-menu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kureev/react-native-side-menu

13.0 13.0 14.0 662 KB

Side menu component for React Native

License: MIT License

JavaScript 99.35% Shell 0.65%

react-native-side-menu's People

Contributors

alessiocancian avatar alimek avatar alinz avatar almost avatar alphasp avatar brentvatne avatar carlesnunez avatar chakrihacker avatar chirag04 avatar danscan avatar davidstubbs avatar dvcrn avatar grabbou avatar hannigand avatar hichambmg avatar kureev avatar morenoh149 avatar mwilc0x avatar naturalclar avatar nickineering avatar piyushchauhan2011 avatar pm0u avatar pointcom avatar sghiassy avatar sharadsxn24 avatar skevy avatar skv-headless avatar thstarshine avatar troywatt avatar zamiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-native-side-menu's Issues

Support 'overlay' style menu

Describe the solution you'd like
Like similar libraries, support displaying as an overlay in addition to push, static, etc.

what's the secret to using SafeAreaView w/ SideMenu?

Describe the bug
I did see the demo file with structure, but when employed in my project it displays very strangely.

To Reproduce
Steps to reproduce the behavior:

  1. Create a RN app v 63.2
  2. render App with .... etc things
  3. observe the finished app looking very wrong (below). All the contents of the SideMenu are compressed into the corner.

Screenshots
If applicable, add screenshots to help explain your problem.
d

Platform:

  • OS: both
  • React Native version: 0.63.2
  • Library Version: latest

[REQUEST] Change overlay color opacity based on menu offset decimal value

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

cannot run

how to run in android? Why i cannot run and the sidemenu doesn't appear.

Menu behind keyboard on close Androird

When I close the keyboard for a moment I can see the menu screen in the same space where the keyboard was.
This does not happen in IOS.
I tried this:

<SideMenu menu={isOpen ? menu : <View style={{ backgroundColor: Color.transparent }}></View>}

Then I see a white background for a moment with the same keyboard size.

"react-native-side-menu-updated": "^1.3.2",
"react-native": "~0.63.3",
"react": "~16.13.1",
"react-navigation-stack": "^2.10.0",
"react-navigation-tabs": "^2.10.1",
"react-navigation-transitions": "^1.0.12",

RTL not working as expected

Describe the bug
React native in force RTL not working as expected,
on RTL mode the view will slide to left, but the menu will be left:0 so won't be shown

To Reproduce
on react native web set all view on direction: RTL
and add in sidemenu prop "menuPosition="right"

Platform:

  • React Native version: 0.63.2
  • Library Version: 1.3.2

Fix
on index.js line 265
I changed:

const boundryStyle = this.props.menuPosition === 'right'
      ? { left: this.state.width - this.state.openMenuOffset }
      : { right: this.state.width - this.state.openMenuOffset };

    const menu = (
      <View style={[styles.menu, boundryStyle]}>
        {this.props.menu}
      </View>
    );

to:

const menu = (
      <View style={[styles.menu, { right: this.state.width - this.state.openMenuOffset }]}>
        {this.props.menu}
      </View>
    );

and line 327 I marked this:
// {"mode":"full","isActive":false}

Now it is working smoothly on LTR & RTL mode.
thx

React Native Web

Describe the bug
Sidebar prevents scroll down in React Native Web

To Reproduce
Steps to reproduce the behavior:

  1. Install in React Native Web
  2. Try to scroll down

Sidebar works on iOS, but fills the entire screen on Android

Describe the bug
When I start my Android app, the entire thing is filled with the sidebar

To Reproduce
Steps to reproduce the behavior:

  1. Create app with sidebar
  2. Run it on Android

Screenshots
Screen Shot 2021-05-15 at 9 02 54 PM

Platform:

  • OS: Android
  • React Native version: .62?
  • Library Version: 1.3.2

Error on Next JS

Describe the bug
When using this library on NextJS, it throws this warning:

Warning: Prop style did not match. Server: "right:NaNpx" Client: "right:137.33333333333337px"

To Reproduce
Steps to reproduce the behavior:

  1. Install library
  2. Wrap components inside this sidebar, inside a NextJS site

Platform:

  • OS: Web
  • React Native version: [69.3]
  • Library Version: [1.3.2]

How to set the width of the menu?

I found out that I can set the size of the side menu using openMenuOffset, however I noticed that when the app starts in landscape mode, the same values renders different width sizes. Is there another way to set the width of the menu.

My SideMenu contents are visible even when the side menu is hidden

question :
My SideMenu contents are visible even when the side menu is hidden

effect picture:
image

description:
When my sidebar is false, my page can still see the sidebar content。 I saw the FAQ of your npm document, "Ensure that your main view has a background color applied", but I added no effect

How to solve this problem? thank

Initial Issue

When the app starts the screen, the menu has appeared and after a few moments, it disappears.
How to fix and what is the problem?
I already set the isOpen={false}

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.