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
package com.aproject | |
import android.app.Activity | |
import android.content.Intent | |
import android.os.Bundle | |
import android.os.PersistableBundle | |
import android.view.WindowManager | |
import com.facebook.react.ReactActivity | |
import com.facebook.react.ReactActivityDelegate |
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 { GoogleAnalyticsTracker } from "react-native-google-analytics-bridge"; | |
let tracker = new GoogleAnalyticsTracker("UA-12345678-9"); | |
tracker.trackScreenView("Home"); |
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
@override | |
void initState() { | |
super.initState(); | |
scheduleMicrotask(this.transition); | |
} | |
transition() { | |
// Logic | |
} |
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
@override | |
void initState() { | |
super.initState(); | |
this.transition(); | |
} | |
transition() async { | |
// Logic | |
} |
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
npm install -g ios-deploy |
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
react-native run-ios --device "[DEVICE NAME]" |
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
react-native run-ios --device "Jordan's iPhone" |
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
<script> | |
window.onload = function () { | |
ReactDOM.render( | |
React.createElement(Container, { discountCode: "20OFF", style: { backgroundColor: 'transparent', paddingTop: 190, paddingBottom: 50 } }), | |
document.getElementById('react-container') | |
); | |
}; | |
</script> |
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
ReactDOM.render( | |
<MyComponent />, | |
document.getElementById('component-container') | |
); |
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
ReactDOM.render( | |
<MyComponent />, | |
document.getElementById('component-container') | |
); | |
ReactDOM.render( | |
<MyComponent />, | |
document.getElementById('component-container2') | |
); |