-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make web as default implementation
- Loading branch information
Showing
10 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { OpacityDecorator as OpacityDecoratorDraggableFlatlist } from 'react-native-draggable-flatlist'; | ||
import type { Props } from '../types'; | ||
|
||
export function OpacityDecorator({ children }: Props) { | ||
return ( | ||
<OpacityDecoratorDraggableFlatlist> | ||
{children} | ||
</OpacityDecoratorDraggableFlatlist> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
import React from 'react'; | ||
import { OpacityDecorator as OpacityDecoratorDraggableFlatlist } from 'react-native-draggable-flatlist'; | ||
import type { Props } from '../types'; | ||
|
||
export function OpacityDecorator({ children }: Props) { | ||
return ( | ||
<OpacityDecoratorDraggableFlatlist> | ||
{children} | ||
</OpacityDecoratorDraggableFlatlist> | ||
); | ||
return children; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { ScaleDecorator as ScaleDecoratorDraggableFlatlist } from 'react-native-draggable-flatlist'; | ||
import type { Props } from '../types'; | ||
|
||
export function ScaleDecorator({ children }: Props) { | ||
return ( | ||
<ScaleDecoratorDraggableFlatlist> | ||
{children} | ||
</ScaleDecoratorDraggableFlatlist> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
import React from 'react'; | ||
import { ScaleDecorator as ScaleDecoratorDraggableFlatlist } from 'react-native-draggable-flatlist'; | ||
import type { Props } from '../types'; | ||
|
||
export function ScaleDecorator({ children }: Props) { | ||
return ( | ||
<ScaleDecoratorDraggableFlatlist> | ||
{children} | ||
</ScaleDecoratorDraggableFlatlist> | ||
); | ||
return children; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { ShadowDecorator as ShadowDecoratorDraggableFlatlist } from 'react-native-draggable-flatlist'; | ||
import type { Props } from '../types'; | ||
|
||
export function ShadowDecorator({ children }: Props) { | ||
return ( | ||
<ShadowDecoratorDraggableFlatlist> | ||
{children} | ||
</ShadowDecoratorDraggableFlatlist> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
import React from 'react'; | ||
import { ShadowDecorator as ShadowDecoratorDraggableFlatlist } from 'react-native-draggable-flatlist'; | ||
import type { Props } from '../types'; | ||
|
||
export function ShadowDecorator({ children }: Props) { | ||
return ( | ||
<ShadowDecoratorDraggableFlatlist> | ||
{children} | ||
</ShadowDecoratorDraggableFlatlist> | ||
); | ||
return children; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { DraggableList } from './DraggableList'; | ||
import 'react-native-gesture-handler'; | ||
|
||
export { OpacityDecorator } from './decorators/OpacityDecorator'; | ||
export { ScaleDecorator } from './decorators/ScaleDecorator'; | ||
export { ShadowDecorator } from './decorators/ShadowDecorator'; | ||
export { OpacityDecorator } from './decorators/OpacityDecorator/index.native'; | ||
export { ScaleDecorator } from './decorators/ScaleDecorator/index.native'; | ||
export { ShadowDecorator } from './decorators/ShadowDecorator/index.native'; | ||
|
||
export default DraggableList; |