react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[v2] searchBar: false render a searchBar on iOS 11+

Open dozoisch opened this issue 7 years ago • 35 comments

Issue Description

searchBar: false renders a search bar on iOS 11+.

Steps to Reproduce / Code Snippets / Screenshots

Create a component with the following definition.

{
  component: {
  id: "a.component",
  name: "a.component",
  options: {
    topBar: {
      searchBar: false,
      title: {
        text: "Search Bar is Visible,
      },
    },
  },
}

Without searchBar: false there is no search bar, with searchBar: any, a wild search bar appears.

This is due to https://github.com/wix/react-native-navigation/blob/b0c8113243de2043b98442dd485c04b0422aa213/lib/ios/RNNViewControllerPresenter.m#L31 just checking if there is a value instead of making sure the value is truthy.

I wanted to do a PR, but it's also present here https://github.com/wix/react-native-navigation/blob/b0c8113243de2043b98442dd485c04b0422aa213/lib/ios/RNNViewControllerPresenter.m#L67 and I wasn't sure how to handle removing the search bar.


Environment

  • React Native Navigation version: 2.1.3-snapshot.50
  • React Native version: 0.56
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): iOS 11+

dozoisch avatar Dec 12 '18 20:12 dozoisch

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Jan 12 '19 19:01 stale[bot]

Not stale.

mathieumg avatar Jan 12 '19 19:01 mathieumg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Feb 11 '19 20:02 stale[bot]

Not stale :)

dozoisch avatar Feb 11 '19 20:02 dozoisch

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Mar 13 '19 21:03 stale[bot]

Not stale

mathieumg avatar Mar 13 '19 21:03 mathieumg

Not stale. Affects latest 2.17.0 also

alexey-chernikov avatar Apr 12 '19 13:04 alexey-chernikov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar May 12 '19 13:05 stale[bot]

Not stale.

mathieumg avatar May 12 '19 15:05 mathieumg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Jun 11 '19 15:06 stale[bot]

Not stale.

mathieumg avatar Jun 11 '19 16:06 mathieumg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Jul 11 '19 16:07 stale[bot]

Not stale!

dozoisch avatar Jul 11 '19 16:07 dozoisch

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Aug 10 '19 17:08 stale[bot]

Not stale

dozoisch avatar Aug 10 '19 18:08 dozoisch

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Sep 09 '19 19:09 stale[bot]

Not stale.

mathieumg avatar Sep 09 '19 19:09 mathieumg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Oct 09 '19 20:10 stale[bot]

Not stale.

mathieumg avatar Oct 09 '19 20:10 mathieumg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Nov 08 '19 21:11 stale[bot]