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 { | |
View, | |
Text, | |
TouchableOpacity, | |
} from 'react-native'; | |
import WebViewHack from './WebViewHack'; | |
class ImportFileScreen extends Component { |
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
/* largeString will be included with the returned function, | |
making the closure large. */ | |
function makeLargeClosure() { | |
var largeString = new Array(1000).join('0123456789'); | |
return function() { | |
console.log(largeString); | |
} | |
} | |
/* largeString isn't used in the closure, even though it's in scope. |