This file contains hidden or 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
export const redirectToMercadoPago = (transactionId: string) => { | |
const loadScript = (url: string, callback: () => void) => { | |
let script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
if (script.readyState) { | |
script.onreadystatechange = () => { | |
if ( | |
script.readyState === 'loaded' || | |
script.readyState === 'complete' |
This file contains hidden or 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, { useState, useEffect } from 'react'; | |
import { View } from 'react-native'; | |
import { VictoryPie } from 'victory-native'; | |
import styles from './styles'; | |
const graphicColor = ['#388087', '#6fb3b8', '#badfe7']; // Colors | |
const wantedGraphicData = [{ y: 10 }, { y: 50 }, { y: 40 }]; // Data that we want to display | |
const defaultGraphicData = [{ y: 0 }, { y: 0 }, { y: 100 }]; // Data used to make the animate prop work |
This file contains hidden or 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 { View } from 'react-native'; | |
import { VictoryPie } from 'victory-native'; | |
import styles from './styles'; | |
const graphicData = [{ y: 10 }, { y: 50 }, { y: 40 }]; | |
const graphicColor = ['#388087', '#6fb3b8', '#badfe7']; | |
function Home() { |
This file contains hidden or 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 { View } from 'react-native'; | |
import { VictoryPie } from 'victory-native'; | |
import styles from './styles'; | |
const graphicData = [{ y: 10 }, { y: 50 }, { y: 40 }]; | |
const graphicColor = ['#388087', '#6fb3b8', '#badfe7']; | |
function Home() { |