Skip to content

Commit 1654345

Browse files
committed
refactor: renamed package
1 parent 20c34ab commit 1654345

File tree

8 files changed

+14
-43
lines changed

8 files changed

+14
-43
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-native-airplay-cast
1+
# react-native-airplay-button
22

33
Stream audio or video to AirPlay-enabled devices with a customizable AirPlay button.
44

@@ -7,7 +7,7 @@ Stream audio or video to AirPlay-enabled devices with a customizable AirPlay but
77
## Installation
88

99
```sh
10-
npm install react-native-airplay-cast --save
10+
npm install react-native-airplay-button --save
1111

1212
```
1313

@@ -17,12 +17,12 @@ Run `npx pod-install`. Linking is not required in React Native 0.60 and above.
1717

1818
**React Native 0.59 and below**
1919

20-
Run `react-native link react-native-airplay-cast` to link the react-native-airplay-cast library.
20+
Run `react-native link react-native-airplay-button` to link the react-native-airplay-button library.
2121

2222
## Usage
2323

2424
```js
25-
import { AirPlayButton } from "react-native-airplay-cast";
25+
import AirPlayButton from "react-native-airplay-button";
2626

2727
<AirPlayButton
2828
activeTintColor="blue"

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { StyleSheet, View } from 'react-native';
3-
import { AirPlayButton } from 'react-native-airplay-cast';
3+
import AirPlayButton from 'react-native-airplay-button';
44

55
const systemRed = 'rgb(255, 59, 48)';
66

ios/AirplayCast.h

Lines changed: 0 additions & 5 deletions
This file was deleted.

ios/AirplayCast.m

Lines changed: 0 additions & 19 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "react-native-airplay-cast",
3-
"version": "1.0.2",
2+
"name": "react-native-airplay-button",
3+
"version": "1.0.3",
44
"description": "Stream audio or video to AirPlay-enabled devices with a customizable AirPlay button",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
@@ -12,7 +12,7 @@
1212
"lib",
1313
"ios",
1414
"cpp",
15-
"react-native-airplay-cast.podspec",
15+
"react-native-airplay-button.podspec",
1616
"!lib/typescript/example",
1717
"!**/__tests__",
1818
"!**/__fixtures__",
@@ -32,13 +32,13 @@
3232
"react-native",
3333
"ios"
3434
],
35-
"repository": "https://github.com/dylancom/react-native-airplay-cast",
35+
"repository": "https://github.com/dylancom/react-native-airplay-button",
3636
"author": "Dylan Companjen <[email protected]> (https://github.com/dylancom)",
3737
"license": "MIT",
3838
"bugs": {
39-
"url": "https://github.com/dylancom/react-native-airplay-cast/issues"
39+
"url": "https://github.com/dylancom/react-native-airplay-button/issues"
4040
},
41-
"homepage": "https://github.com/dylancom/react-native-airplay-cast#readme",
41+
"homepage": "https://github.com/dylancom/react-native-airplay-button#readme",
4242
"devDependencies": {
4343
"@commitlint/config-conventional": "^8.3.4",
4444
"@react-native-community/bob": "^0.16.2",

src/index.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
import { requireNativeComponent, ViewProps } from 'react-native';
22

3-
// type AirPlayCastType = {
4-
// };
5-
6-
// const { AirPlayCast } = NativeModules;
7-
83
type AirPlayButtonProps = ViewProps & {
94
activeTintColor?: string;
105
tintColor?: string;
116
style?: React.CSSProperties;
127
};
138

14-
export const AirPlayButton = requireNativeComponent<AirPlayButtonProps>(
9+
const AirPlayButton = requireNativeComponent<AirPlayButtonProps>(
1510
'RNAirPlayButton'
1611
);
1712

18-
// export default AirPlayCast as AirPlayCastType;
13+
export default AirPlayButton;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"baseUrl": ".",
44
"paths": {
5-
"react-native-airplay-cast": ["./src/index"]
5+
"react-native-airplay-button": ["./src/index"]
66
},
77
"allowUnreachableCode": false,
88
"allowUnusedLabels": false,

0 commit comments

Comments
 (0)