Open Meetcpatel opened 2 months ago
Couldn't find version numbers for the following packages in the issue:
@react-navigation/native
@react-navigation/stack
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
Couldn't find version numbers for the following packages in the issue:
@react-navigation/stack
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found: 6.9.1
, latest: 6.1.18
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
Couldn't find version numbers for the following packages in the issue:
@react-navigation/stack
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found: 6.0.2
, latest: 6.1.18
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found: 6.0.2
, latest: 6.1.18
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
* `@react-navigation/native` (found: `6.0.2`, latest: `6.1.18`)
Can you verify that the issue still exists after upgrading to the latest versions of these packages?
No, still same
Facing a similar situation.
Using a ref doesn't seem to work, as ref is always null.
const ref = useRef<any>(null);
useEffect(() => {
console.log(ref.current); // > null
ref.current.setText('hello world');
}, []);
headerSearchBarOptions: {
placeholder: "Search...",
placement: "stacked",
hideWhenScrolling: false,
ref,
},
Current behavior
Currently, I'm using the
headerSearchBarOptions
to create a search bar in the header of my screen:This successfully creates a search bar in the header. However, there doesn't seem to be a way to programmatically set or update the text in this search bar after it's been created.
For example, if I want to set the search text to "example" when a button is pressed, I don't have a clear way to do this:
Expected behavior
I expect to be able to programmatically set or update the text in the search bar after it has been created. Ideally, there would be a method or option that allows me to do something like this:
This would allow me to:
Reproduction
https://snack.expo.dev/@span.gurusoft/headersearchbaroptions
Platform
Packages
Environment