How to replace react-native FlatlList indicator - react-native

I have write custom header in FlatList.
Now I want to replace the indicator with other picture both in Android and ios.
I have try many way to modify it, but all Failed.
here is my demo code https://github.com/kk412027247/react-native-custom-flatlist

Related

Create a custom date picker with react native and expo

I would like to create a box to select the date as in the attached photo.
What do you recommend to create something similar in react native with expo?
I tried using MUI's Mobile DatePicker API, but it doesn't work, errors occur.
Update:
I created this box to select the date, but when I go to press it gives me an error.
The error is the following:
https://www.npmjs.com/package/#react-native-community/datetimepicker
Works with Expo. Static version set at 3.x.x (something version 3). So you won't have the full functionality that is described on their docs, but you'll have enough.
expo install #react-native-community/datetimepicker
instead of npm to ensure you get the compatible version.
This library can be a bit difficult to work with. The main suggestion I have for you is to create a custom component on your own that looks like your design. Then wrap it with a TouchableOpacity and onPress set the DateTimePicker to show its modal. Grab the value you need from the onChange result, and pass it to your local state. Dont try anything fancy after that because as I mentioned earlier, the library is difficult to work with and really fights hard against any customization. It works well though and will certainly solve your problem.

Nooby question for a splash screen in React Native

Trying to make a splash screen for my react native app using this guide: https://medium.com/#appstud/add-a-splash-screen-to-a-react-native-app-810492e773f9
Trying to type this code in: Code image
and I'm getting errors. Could someone please explain what the "create:" and "inputs:" mean and why they're grayed out?
Thanks
They are the explanation of the code parts. You put the inputs where it says inputs. Create is the block that you put your code that you want effect to trigger. You can read the documentation about the react hooks so you will have a better grasp before you try to jump into using them; React hooks

React Native | text highlighting

I am working on a react native app.
in one page of it I wan't to make a highlighting option like the following picture
but I can't customize the text popover to reach this behavior,
after many trials I reached the following result
Any idea how to add highlighting functionality?
Try using react-native-highlight-words library . Might be it solves your problem
Just use a webview and use the injectedJavaScript prop

Running Text as Breaking News animation in React-Native?

I'm new in React-Native Animation.
I want to create Running Text like Running Text in Breaking News.
Appreciate for any help.
I don't know whether you want to create the animation on your own or just use existing components. If you just need the animation, try importing components like react-native-marquee or react-native-marquee-label.
If you want to understand how it's done and want to implement it yourself, just have a look at the source codes of those projects, e. g. this one.

ListView section headers don't seem to be working on Android, but they work fine on iOS?

Has anyone had success with ListView section headers on Android? Using the documentation and a few handy tutorials I was able to build this for iOS:
When we run the code on Android (Lollipop and Marshmallow) the ListView just acts like a ScrollView...no section headers :(
Has anyone else run into issues with the ListView on Android? Were you able solve them? We're no against building a separate component for Android so if you know of another react-native component that can be used to achieve this effect that would be great too.