message: fix: add toutiao getIcons function
diff: @@ -42,3 +42,21 @@ export function getNativePropName(prop: string) {
  return prop;
  }
  +
  +export function getIcons(config: any) {
  + if (!config.tabBar) {
  + return [];
  + }
  +
  + const tabs: { iconPath: string; selectedIconPath: string }[] =
  + config.tabBar.list;
  +
  + if (tabs) {
  + return tabs.reduce<string[]>(
  + (images, tab) => [...images, tab.iconPath, tab.selectedIconPath],
  + []
  + );
  + }
  +
  + return [];
  +}
  