Skip to content

[iOS] SearchBar and TabBar on same screen #616

Discussion options

You must be logged in to vote

I added a search bar to the twitter sample and there's no double height in the video below. Maybe you mean the gap at the top when it's expaned? If you don't want that you shouldn't set largeTitle to true on the NavigationBar

Screen.Recording.2022-07-17.at.19.24.56.mov

This is the code you can paste into Home component if you want to test it out

import React, {useState} from 'react';
import {Platform, ScrollView} from 'react-native';
import {NavigationBar, CoordinatorLayout, SearchBar} from 'navigation-react-native';
import Tweets from './Tweets';
import {getHome} from './data';

export default ({tweets}) => {
  const [text, setText] = useState('');
  return (
    <ScrollView con…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@gezquinndesign
Comment options

@grahammendick
Comment options

@gezquinndesign
Comment options

Answer selected by grahammendick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants