What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-08 05:04:15
react native import svg image
yarn add react-native-svg yarn add react-native-svg-uri npx react-native link react-native-svg ... import * as React from 'react'; import SvgUri from 'react-native-svg-uri'; // SVG Package import testSvg from './test.svg'; // SVG File ex... Add solution -
Javascript 2021-11-07 09:41:14
search bar in react js example
import * as React from 'react'; import { Searchbar } from 'react-native-paper'; export default class MyComponent extends React.Component { state = { firstQuery: '', }; render() { const { firstQuery } = this.state; return ( <Se... Add solution -
-
TypeScript 2021-11-01 17:21:18
how to use class component in typescript react
import * as React from 'react'; export interface TestProps { count: number; } export interface TestState { count: number; } class Test extends React.Component<TestProps, TestState> { state = { count:0 } render() { retu... Add solution -
Javascript 2021-10-29 18:22:20
inbound email sendgrid cloud functions
import * as functions from 'firebase-functions'; import * as express from 'express'; const formidable = require('formidable-serverless'); export class InboundEmail { constructor(from, subject, text, html, to) {} doStrategy() { //Store inbound em... Add solution -
Javascript 2021-10-28 19:13:22
API version control v1 v2 in NodeJs (loosely coupled)
import * as express from 'express'; // v1/get-ride.js const router = express.Router(); router.post('/rides/:id', dep.verifyToken(), (req, res) => { // Your code }); app.use('/v1', router); // v2/get-ride.js const router = express.Router(); route... Add solution -
Other 2021-10-28 03:18:14
fs.access doens' do anything
import {promises as fs} from "fs"; import * as oldfs from "fs"; (async function() { // fs.stat has higher level abstraction const stat = await fs.stat(__dirname); console.log(stat.isDirectory()); console.log(stat.isFil... Add solution -
Javascript 2021-10-27 10:55:07
stack navigator
// In App.js in a new project import * as React from 'react'; import { View, Text } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; function HomeScreen(... Add solution