Skip to content

Instantly share code, notes, and snippets.

<h1>hello</h1>

Keybase proof

I hereby claim:

  • I am stevenjohn on github.
  • I am stevewalkr (https://keybase.io/stevewalkr) on keybase.
  • I have a public key ASDDfBF3133kq7px97SWv-_3PPT_vvdE73x9K9EU9vbvlgo

To claim this, I am signing this object:

import React, { useEffect, useState } from 'react';
import { FlatList, SafeAreaView, Text } from 'react-native';
import PropTypes from 'prop-types';
export const fetchApiData = async route => {
try {
const response = await fetch("https://impact.task.io/wp-json/v2/" + route);
const json = await response.json();
return json;
@stevenjohn
stevenjohn / task-example-1
Last active March 30, 2017 07:44
TASK.IO basic example showing image and html in the task canvas page
{
"task": {
"name": "A basic task giving an overview of your basic visual options. Lets display an image: http://go.task.io/ny9bg",
"lat": 0,
"lng": 0,
"radius": 300,
"details": "This is the default way tasks are displayed. You can also send some html tags through which we will demonstrate below. Note, all other tags not shown here will be stripped out.<br><br>
Images are always displayed inline, full width where they get added to the content - for example: http://go.task.io/tee8u
OK, so lets work through some html tag options...
<h1>This is the Header 1</h1>
<?xml version="1.0" encoding="UTF-8"?>
<SearchBoard>
<Name>Reed</Name>
<SearchUrl>https://www.reed.co.uk/recruiter/cvsearch/results</SearchUrl>
<SearchMethod>GET</SearchMethod>
<Logo>//yutalent.co.uk/images/stories/Portal_logos/reed.jpg</Logo>
<Fields>
<Field>
<FieldName>Keywords</FieldName>
<SourceFieldName>keywords</SourceFieldName>
<?xml version="1.0" encoding="UTF-8"?>
<SearchBoard>
<Name>Reed</Name> <!-- The name of the board -->
<SearchUrl>https://www.reed.co.uk/recruiter/cvsearch/results</SearchUrl> <!-- URL of form action -->
<SearchMethod>GET</SearchMethod> <!-- Form method (GET|POST) -->
<Logo>//yutalent.co.uk/images/stories/Portal_logos/reed.jpg</Logo> <!-- Logo image path -->
<Fields> <!-- list of the fields from the form of the board -->
<Field>
<FieldName>Permanent</FieldName> <!-- The "name" property of the form input -->
<SourceFieldName>job-type</SourceFieldName> <!-- the var from our form (not required) -->