Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Find a combination of packages that works reliably #78

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

isocra
Copy link

@isocra isocra commented May 15, 2019

As per issue #77 here is a combination of packages that seem to work reliably using yarn (tested by removing node_modules and yarn.lock and then reinstalling everything. I tried "@expo/browser-polyfill": "0.0.1-alpha.4" but that didn't work so left it at alpha.3.

@joaobsantos
Copy link

Nice work @isocra , hope they merge this soon, having alot of problems becouse of this...

@hubertjaruzal
Copy link

When somebody will merge this?

@srmagura
Copy link

Just tested the signature example after pulling these changes and it works.

@mortendybdal
Copy link

Yes, please merge!

@giautm
Copy link
Contributor

giautm commented Jun 7, 2019

@brentvatne : hey Brent, plz take a look and merge it. Bacon look too busy.

@isocra
Copy link
Author

isocra commented Jun 11, 2019

Just to confirm, I've checked this with Expo SDK 33 and it works fine with no changes needed.

@isocra
Copy link
Author

isocra commented Jul 2, 2019

In the meantime, have a look at #77 (comment), this solution works fine with the existing code.

@Asday
Copy link

Asday commented Jul 2, 2019

@EvanBacon recently merged expo/browser-polyfill#19, should that be reflected here?

@ksairi
Copy link

ksairi commented Jul 3, 2019

@isocra I tested in sdk 33. It works, I mean, it doesn't crash as in previous sdk versions. But in my opinion is not stable. I sign, clear, sign and randomly crashes. So I kept with with this solution still

@todorone
Copy link

todorone commented Feb 4, 2020

@EvanBacon @brentvatne Please merge this PR

@Fxlr8
Copy link

Fxlr8 commented May 6, 2020

Is this repo abandoned?

@@ -17,4 +16,4 @@
},
"platforms": ["android", "ios", "web"]
}
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a newline at the end of the file.

@@ -0,0 +1,7269 @@
Arguments:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this file committed?

this.setState({ appState: nextAppState });
};

componentDidMount() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe removal of this will break switching apps in Android - the drawing will be cleared upon return to the app.

import { PanResponder, PixelRatio } from 'react-native';
import { vec2 } from 'gl-matrix';
import {
GLView
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you end split collections with a trailing comma, when someone else comes to add to the end of the collection in future, they won't need to change the last line, and overwrite the git blame for it, and making the PR harder to read.

import { PanResponder, PixelRatio } from 'react-native';
import { vec2 } from 'gl-matrix';
import {
GLView
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What benefit is there to splitting collections that fit very comfortably on a single line?

Comment on lines +4 to +5
.idea/*
.history/*
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your site-specific clutter should not be added to the repo-wide .gitignore. Use your local git config, or the private .git/info/exclude.

/>
);
}
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline at the end of files please.

}
ref = {
this.setRef
} {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a terrible place to break a line - ref={this.setRef} and {...this.props} are two entirely different props. Technically {...this.props} is a set of zero of more props, but it's still not ref.

This entire block hasn't changed - why are you messing with the layout of it? All that's doing is making it harder to read for the person who wrote it in the first place.

@@ -99,4 +99,4 @@
"eslintConfig": {
"extends": "expo"
}
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline at the end of files, please.

@@ -1,10786 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isocra
Copy link
Author

isocra commented Jun 24, 2020

@Asday thanks for all the comments on the PR. My aim was to make the minimum changes so that I can add Signatures to my Expo app, rather than fix everything. However, if you'd like to fix these in my fork, that would be great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants