Skip to content

Split platform components rule not parsing imports #130

@gabmontes

Description

@gabmontes

The split-platform-components rule only parses the components on destructuring assignments taken from the React variable.

One common practice is to import the components directly from react-native:

import React from 'react'
import { ActivityIndicatiorIOS } from 'react-native' // Import pattern not detected

export default function Hello() {
  return <ActivityIndicatiorIOS/>
}

Please consider adding that pattern to the rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions