Closed Peeratatt closed 4 years ago
does any one have ideas for how to do this for React Navigation?
Have you tried imporing the Indicator component from the package and reimplement it? You can pass a style like that, and even wrap it in a safeview.
Thanks for question and sorry for delayed reply. To customize indicator position and appearance you can override renderPager
prop on Pages
as described in readme. I've updated readme and listed all props passed to renderPager
callback.
@n4kz How about someone who wants to keep the indicator exactly as it is, but simply alter its style a bit? E.g.: something like what you could achieve by modifying src/components/indicator/styles.js
, line 7:
4. container: {
5. flex: 1,
6. justifyContent: 'center',
7. margin: 50, <-------------------
8. },
Any tips for this?
I wanna custom indicator style to bar style.