mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 07:54:57 -06:00
fix positionBy logic in List component
This commit is contained in:
parent
740bdf29de
commit
21044edbb8
4 changed files with 8 additions and 7 deletions
|
|
@ -91,7 +91,7 @@ android {
|
|||
applicationId "com.aretherecookies"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 22
|
||||
versionCode 1
|
||||
versionCode 2
|
||||
versionName "1.0"
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a", "x86"
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.aretherecookies"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
android:versionName="1.0.1">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> -->
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="16"
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ class List extends Component {
|
|||
// TODO convert this component to SFC using recompose
|
||||
// also, figure out a less lifecyle-y way to do this request
|
||||
componentDidMount() {
|
||||
const { locationBy = 'position' } = getSearch(this.props);
|
||||
if (locationBy === 'position') {
|
||||
const { positionBy = 'zip' } = getSearch(this.context);
|
||||
if (positionBy === 'location') {
|
||||
getCurrentPosition();
|
||||
} else {
|
||||
getPositionFromZip();
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
{
|
||||
"name": "aretherecookies",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node node_modules/react-native/local-cli/cli.js start",
|
||||
"test": "jest",
|
||||
"lint": "flow && eslint js",
|
||||
"android": "react-native run-android"
|
||||
"android:dev": "react-native run-android && react-native start",
|
||||
"android:release": "cd android && ./gradlew assembleRelease"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-preset-es2015": "^6.24.0",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue