Skip to content

How do I get the native looking android pill icons like in the demo video? #75

Discussion options

You must be logged in to vote

I created an expo plugin config that adds the "pill" style to the android tab bar. It's a first version but it's working. I hope this will help!

const { withAndroidStyles, withDangerousMod } = require("@expo/config-plugins");
const fs = require("fs");
const path = require("path");

function withNativeTabBarStyles(config) {
  // First, apply the styles modifications
  config = withAndroidStyles(config, async (config) => {
    const styleContents = config.modResults;

    // Find or create the AppTheme style
    let appTheme = styleContents.resources.style.find(
      (style) => style.$.name === "AppTheme"
    );

    if (!appTheme) {
      appTheme = {
        $: {
          name: "AppThe…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fredrikburmester
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