Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Upload Image #2331

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Fix lint error
Alberto Cabrera committed Jan 16, 2024
commit 3e9ca4e8c3dd8305d697392f712c0c57bb0d8a78
3 changes: 2 additions & 1 deletion src/components/ImagePicker/index.tsx
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@ import { LOG } from '../../utils/logging';

// See all options: https://github.com/ivpusic/react-native-image-crop-picker
const DEFAULT_OPTIONS = {
mediaType: 'photo',
width: theme.fullWidth,
height: theme.fullWidth * theme.communityImageAspectRatio,
compressImageQuality: 0.75, // 0 to 1
@@ -62,11 +61,13 @@ const ImagePicker = ({
...DEFAULT_OPTIONS,
cropperCircleOverlay: circleOverlay,
cropping: showCropper,
mediaType: 'photo',
})
: ImageCropPicker.openPicker({
...DEFAULT_OPTIONS,
cropperCircleOverlay: circleOverlay,
cropping: showCropper,
mediaType: 'photo',
}));

const image = Array.isArray(response) ? response[0] : response;

Unchanged files with check annotations Beta

).snapshot();
});
/*describe('press menu button', () => {

Check warning on line 53 in src/components/PopupMenu/__tests__/PopupMenu.android.tsx

GitHub Actions / eslint

Some tests seem to be commented
it('handles press', () => {
const { getByTestId } = renderWithContext(
<PopupMenu actions={actions} triggerOnLongPress={true} />,
);
});
xdescribe('user enables permissions', () => {

Check warning on line 197 in src/containers/NotificationOffScreen/__tests__/NotificationOffScreen.tsx

GitHub Actions / eslint

Disabled test suite
let capturedChangeCallback: ((currentState: string) => void) | null;
it('opens settings menu, then calls next when returning', async () => {
});
});
xdescribe('user does not enable permissions', () => {

Check warning on line 318 in src/containers/NotificationOffScreen/__tests__/NotificationOffScreen.tsx

GitHub Actions / eslint

Disabled test suite
beforeEach(() => {
(requestNativePermissions as jest.Mock).mockReturnValue(
requestPermissionsDenied,