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
function render(html, variables) { | |
let htmlData = html; | |
Object.getOwnPropertyNames(variables).forEach((prop) => { | |
htmlData = htmlData.replace("$" + prop, variables[prop]); | |
}); | |
return htmlData; | |
} |
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 { PowerTranslator, ProviderTypes, TranslatorConfiguration } from 'react-native-power-translator'; | |
import { View, ScrollView, TouchableOpacity, Text } from 'react-native'; | |
export default class PowerTranslatorDemo extends Component { | |
constructor() { | |
super(); | |
this.state = { languageCode: 'fr' }; | |
} |
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
var gsap = require('gsap') | |
export default class Animation{ | |
let tl = new gsap.TimelineLite(); | |
} |
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
/* | |
** When you fix all the issues based on the comment, do a rebase | |
*/ | |
git rebase master | |
/* | |
** Now copy the files that you changed and keep the copy somewhere. | |
** Open your Terminal and find the git commit that you want to reset to (most probably it's your first commit) | |
*/ |