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 { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
TouchableHighlight, | |
NativeAppEventEmitter, | |
NativeEventEmitter, | |
NativeModules, |
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
buildscript { | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.3.0' | |
} | |
} |
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 from 'react'; | |
import {View, Text, StyleSheet, Image ,PermissionsAndroid,Platform} from 'react-native'; | |
export default class App extends React.Component { | |
state = { | |
currentLongitude: 'unknown', | |
currentLatitude: 'unknown', | |
} | |
componentDidMount = () => { |
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 from 'react'; | |
import { View, TextInput } from 'react-native'; | |
const BBTextInput = props => { | |
return ( | |
<View | |
style={{ | |
marginLeft: 35, | |
marginRight: 35, | |
marginTop: 10, | |
borderColor: '#007FFF', |
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 from 'react'; | |
import { TouchableHighlight, Text, StyleSheet } from 'react-native'; | |
const BBText = props => { | |
return <Text style={styles.text}>{props.text}</Text>; | |
}; | |
const styles = StyleSheet.create({ | |
text: { | |
color: '#111825', |
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 from 'react'; | |
import { TouchableOpacity, Text, StyleSheet } from 'react-native'; | |
const BBButon = props => { | |
return ( | |
<TouchableOpacity style={styles.button} onPress={props.itemClick}> | |
<Text style={styles.text}>{props.title}</Text> | |
</TouchableOpacity> | |
); | |
}; |
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
apply plugin: 'com.android.library' | |
apply from: 'gradle-maven-push.gradle' | |
android { | |
compileSdkVersion 28 | |
buildToolsVersion "28.0.3" | |
defaultConfig { | |
minSdkVersion 16 | |
targetSdkVersion 27 |
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
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
<uses-permission android:name="android.permission.VIBRATE" /> | |
<application> | |
<receiver android:name="com.evollu.react.fcm.FIRLocalMessagingPublisher"/> | |
<receiver android:enabled="true" android:exported="true" android:name="com.evollu.react.fcm.FIRSystemBootEventReceiver"> | |
<intent-filter> | |
<action android:name="android.intent.action.BOOT_COMPLETED"/> | |
<action android:name="android.intent.action.QUICKBOOT_POWERON"/> |
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
+ <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@mipmap/ic_notif"/> | |
+ <service android:name="com.evollu.react.fcm.MessagingService" android:enabled="true" android:exported="true"> | |
+ <intent-filter> | |
+ <action android:name="com.google.firebase.MESSAGING_EVENT"/> | |
+ </intent-filter> | |
+ </service> | |
+ <service android:name="com.evollu.react.fcm.InstanceIdService" android:exported="false"> | |
+ <intent-filter> |
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.myapplication.extensions; | |
import android.util.Log; | |
import com.facebook.react.modules.network.OkHttpClientFactory; | |
import com.facebook.react.modules.network.OkHttpClientProvider; | |
import com.facebook.react.modules.network.ReactCookieJarContainer; | |
import java.security.SecureRandom; | |
import java.security.cert.CertificateException; |
NewerOlder