> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobile-starter.amisi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# View

> Render a React Native view while filtering unsupported color props

export const LocalUiPlayground = ({component, title, height = 640}) => {
  const [playgroundUrl, setPlaygroundUrl] = useState(null);
  useEffect(() => {
    const isLocal = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
    setPlaygroundUrl(isLocal ? 'http://localhost:8090/' : 'https://selcouthdigital.github.io/amisi-mobile-starter/');
  }, []);
  if (!playgroundUrl) {
    return null;
  }
  return <div className="not-prose my-6 overflow-hidden rounded-xl border border-zinc-950/10 bg-white dark:border-white/10 dark:bg-zinc-950">
      <iframe src={`${playgroundUrl}?component=${component}`} title={title} className="block w-full" style={{
    height
  }} loading="lazy" />
    </div>;
};

`View` is the package-level React Native view primitive. It removes a `color` prop before forwarding all remaining props.

<LocalUiPlayground component="view" title="Interactive View example" />

## Usage

```tsx theme={null}
import { Text, View } from '@amisi-mobile-starter/ui';

export const Summary = () => (
  <View className="gap-2 rounded-xl bg-surface p-4">
    <Text variant="label">Current plan</Text>
    <Text>Pro</Text>
  </View>
);
```

## Props

`View` accepts React Native `ViewProps`. It does not forward a runtime `color` property, even if one reaches the component outside its TypeScript type.
