What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-25 17:10:14
navigation in react native
import * as React from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; const Stack = createStackNavigator(); const MyStack = () => { return ( <Navigatio... Add solution -
Javascript 2021-10-25 02:42:08
typescript compile string to js
// compile.ts import * as ts from "typescript"; function tsCompile(source: string, options: ts.TranspileOptions = null): string { // Default options -- you could also perform a merge, or use the project tsconfig.json if (null === optio... Add solution -
Other 2021-10-24 02:22:09
Formik yup date validation
import React from "react"; import { Formik, Form, Field } from "formik"; import * as Yup from "yup"; import Paper from "elevate-ui/Paper"; import Datetime from "elevate-ui/Datetime"; import Button from &q... Add solution -
Javascript 2021-10-18 04:47:11
scroll down react js typescript
// ES6 Imports import * as Scroll from 'react-scroll'; import { Link, Element, Events, animateScroll as scroll, scrollSpy, scroller } from 'react-scroll' // Or Access Link,Element,etc as follows let Link = Scroll.Link; let Element = Scroll.Element... Add solution -
Javascript 2021-10-12 11:27:07
read json file in typescript
// data.json: { "greeting" : "xin chao Vietnam" } // component: import * as data from 'data.json'; let greeting = data.greeting; //registering jsonModule in tsconfig.json "compilerOptions": { .... "resolveJsonMod... Add solution