Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
609 B
0
Indexable
Never
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import RadioPlayer from 'react-native-radio-player';

class RadioNineApp extends Component {
  render() {
    return (
      <View>
        <Text>Radio Nine Network</Text>
        <RadioPlayer
          url="http://streamurl.com/radionine"
          onBuffer={() => console.log('Buffering...')}
          onEnd={() => console.log('Stream ended')}
          onError={(error) => console.log(`Error: ${error}`)}
          style={{ height: 50, width: '100%' }}
        />
      </View>
    );
  }
}

export default RadioNineApp;