// @flow
import {Share} from 'react-native'
import type {JobType} from './types'

export function shareJob(job: JobType) {
	const jobBaseUrl =
		'https://www.stolaf.edu/apps/stuwork/index.cfm?fuseaction=Details&jobID='
	Share.share({
		message: `${jobBaseUrl}${job.id}`,
	}).catch(error => console.log(error.message))
}

@@ -10,16 +10,26 @@
 import %7B
+Platform, 
 Share%7D f
@@ -47,16 +47,55 @@
 native'%0A
+import querystring from 'query-string'%0A
 import t
@@ -184,19 +184,17 @@
 aseUrl =
-%0A%09%09
+ 
 'https:/
@@ -232,16 +232,59 @@
 dex.cfm?
+'%0A%09const query = querystring.stringify(%7B%0A%09%09
 fuseacti
@@ -289,77 +289,231 @@
 tion
-=
+: '
 Details
-&jobID='%0A%09Share.share(%7B%0A%09%09message: %60$%7BjobBaseUrl%7D$%7Bjob.id%7D%60
+',%0A%09%09jobID: job.id,%0A%09%7D)%0A%09const url = %60$%7BjobBaseUrl%7D$%7Bquery%7D%60%0A%0A%09if (Platform.OS === 'ios') %7B%0A%09%09Share.share(%7B%0A%09%09%09url: url,%0A%09%09%7D).catch(error =%3E console.log(error.message))%0A%09%7D else %7B%0A%09%09Share.share(%7B%0A%09%09%09message: url
 ,%0A
+%09
 %09%7D).
@@ -555,10 +555,13 @@
 ssage))%0A
+%09%7D%0A
 %7D%0A

use querystring, build url once in job share