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
$ traceroute wp.pl | |
traceroute to wp.pl (212.77.98.9), 64 hops max, 52 byte packets | |
1 openwrt (192.168.1.1) 2.463 ms 1.850 ms 4.253 ms | |
2 136.22.97.161 (136.22.97.161) 46.257 ms 47.621 ms 48.280 ms | |
3 136.22.254.46 (136.22.254.46) 40.607 ms 52.223 ms 40.317 ms | |
4 108.170.252.19 (108.170.252.19) 48.049 ms | |
108.170.252.83 (108.170.252.83) 55.325 ms 46.566 ms | |
5 108.170.236.249 (108.170.236.249) 50.249 ms | |
108.170.238.60 (108.170.238.60) 45.171 ms | |
209.85.252.29 (209.85.252.29) 57.876 ms |
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, PureComponent } from "react"; | |
import { FlatList, Image, NativeModules, StyleSheet, Text, TouchableOpacity, View } from "react-native"; | |
import { ReactNativeAudioStreaming } from "react-native-audio-stream"; | |
type ChannelLogo = { url: string }; | |
type Channel = { id: number, name: string, logo: ChannelLogo }; | |
type ChannelItemType = { logo: ChannelLogo, name: string }; | |
const ChannelItem = ({ channel }: Channel) => ( |
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 "AppDelegate.h" | |
#import <React/RCTBundleURLProvider.h> | |
#import <React/RCTRootView.h> | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
NSURL *jsCodeLocation; |
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 AVFoundation; | |
@import MediaPlayer; | |
#import <UIKit/UIKit.h> | |
@interface AppDelegate : UIResponder <UIApplicationDelegate, MPPlayableContentDataSource, MPPlayableContentDelegate> | |
@property (nonatomic, strong) UIWindow *window; | |
@property (nonatomic, retain) NSArray *channels; | |
@property (nonatomic, retain) AVPlayer *player; |
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 "AppDelegate.h" | |
#import "RNChannels.h" | |
@interface RNChannels() | |
@end | |
@implementation RNChannels | |
RCT_EXPORT_MODULE() |
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
defaults write com.apple.iphonesimulator CarPlay -bool YES |
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 pl.wp.wdi | |
// (...) | |
class FancyViewManager: SimpleViewManager<View>() { | |
override fun getName(): String { | |
return "FancyViewManager" | |
} | |
override fun createViewInstance(reactContext: ThemedReactContext?): View { |
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 "FancyViewManager.h" | |
#import <React/UIView+React.h> | |
@interface FancyViewManager () | |
@end | |
@implementation FancyViewManager | |
/* | |
We could either remove "FancyViewManagerManager" here and rename Android module, |
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
export default class App extends Component<Props> { | |
// (...) | |
render() { | |
return ( | |
<View style={styles.container}> | |
// We've added text="hello" here | |
<RNFancyViewManager text="hello" style={{ width: 160, height: 160 }} /> | |
// (...) | |
</View> |
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 { requireNativeComponent, NativeModules } from "react-native"; | |
class FancyViewManager extends React.Component { | |
render() { | |
return <RNFancyViewManager {...this.props} />; | |
} | |
} |
NewerOlder