This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react' | |
import { fireEvent, render } from 'react-native-testing-library' | |
import { HookTest } from '../HookTest' | |
describe('Test Hooks', () => { | |
test('changeText', () => { | |
const { getByTestId, getByPlaceholder, queryByDisplayValue } = render( | |
<HookTest />) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react' | |
import { useState } from 'react' | |
import { | |
NativeSyntheticEvent, Text, TextInput, TextInputSubmitEditingEventData, | |
TouchableOpacity, View} from 'react-native' | |
interface IProps { | |
myMock?: () => void | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { Component } from 'react'; | |
import { Text } from 'react-native'; | |
interface IProps { | |
count?: number; | |
} | |
interface IState { | |
count: number; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import * as TestRenderer from 'react-test-renderer'; | |
import TestClass from '../TestClass'; | |
import TestHoc from '../TestHoc'; | |
let renderer: TestRenderer.ReactTestRenderer; | |
describe("Test Component state change without HOC", () => { | |
beforeAll(() => { | |
renderer = TestRenderer.create( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import * as TestRenderer from 'react-test-renderer'; | |
import TestClass from '../TestClass'; | |
import TestHoc from '../TestHoc'; | |
let renderer: TestRenderer.ReactTestRenderer; | |
describe("Test Component state change without HOC", () => { | |
beforeAll(() => { | |
renderer = TestRenderer.create( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { Component } from 'react'; | |
import { Text } from 'react-native'; | |
interface IProps { | |
count?: number; | |
} | |
interface IState { | |
count: number; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
ActivityIndicator, | |
View, | |
} from 'react-native' | |
import { ExpoScanner } from '../components/scanner/ExpoScanner'; | |
class ScannerScreen extends React.Component { | |
constructor(props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Alert, View, Text, Vibration, StyleSheet } from 'react-native'; | |
import { Camera, BarCodeScanner, Permissions } from 'expo'; | |
export class ExpoScanner extends Component { | |
constructor(props) { | |
super(props); | |
this.onBarCodeRead = this.onBarCodeRead.bind(this); | |
this.renderMessage = this.renderMessage.bind(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"timeZone": "Europe/London", | |
"dependencies": { | |
"enabledAdvancedServices": [ | |
{ | |
"userSymbol": "BigQuery", | |
"serviceId": "bigquery", | |
"version": "v2" | |
}, { | |
"userSymbol": "Drive", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [START apps_script_bigquery_update_sheet] | |
/** | |
* Runs a BigQuery query and replace the existing sheet | |
*/ | |
/** | |
* Add a custom menu to the spreadsheet when it is opened. | |
*/ | |
function onOpen() { | |
var spreadsheet = SpreadsheetApp.getActive(); |
NewerOlder