Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/EaseView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ export type EaseViewProps = ViewProps & {
useHardwareLayer?: boolean;
/** Pivot point for scale and rotation as 0–1 fractions. @default { x: 0.5, y: 0.5 } (center) */
transformOrigin?: TransformOrigin;
/** NativeWind / Tailwind CSS class string. Requires NativeWind in your project. */
className?: string;
};

export function EaseView({
Expand Down
6 changes: 6 additions & 0 deletions src/__tests__/EaseView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ describe('EaseView', () => {
expect(screen.getByText('Hello')).toBeTruthy();
});

it('passes className through', () => {
render(<EaseView testID="ease" className="bg-red-500 p-4" />);
const props = getNativeProps();
expect(props.className).toBe('bg-red-500 p-4');
});

it('passes style through', () => {
render(
<EaseView
Expand Down
Loading