react-native-touchable-action 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +33 -32
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,20 @@
1
- # React Native Floating Action Button
1
+ # React Native Touchable Action
2
2
 
3
3
  ###### A simple floating action button component for any React Native project using Expo
4
4
 
5
+ iOS | Android
6
+ :------------------:|:------------------:
7
+ ![iOSMainDemonstration](https://github.com/cartagenae/react-native-touchable-action/assets/6395465/ccb5b029-b5a7-4782-9a68-a05561763bb1) | ![AndroidMainDemonstration](https://github.com/cartagenae/react-native-touchable-action/assets/6395465/f1198ec9-df99-4e88-9a57-578d7143c040)
8
+
9
+
10
+ ---
11
+
5
12
  ## Installation
6
13
 
7
14
  ```
8
15
  npm install --save react-native-touchable-action
9
16
  ```
10
-
11
17
  or
12
-
13
18
  ```
14
19
  yarn add react-native-touchable-action
15
20
  ```
@@ -38,9 +43,9 @@ import FloatingActionButton from 'react-native-touchable-action';
38
43
  console.log('You pressed the rocket button');
39
44
  }}
40
45
  style={{
41
- position: 'absolute',
42
- bottom: 75,
43
- right: 50,
46
+ position='absolute',
47
+ bottom=75,
48
+ right=50,
44
49
  }}
45
50
  />
46
51
  ```
@@ -100,11 +105,10 @@ buttonColor='#0F044C'
100
105
  #### buttonColorPressed
101
106
  > type: String - Default: #6a4c93
102
107
  ###### The color of the button when pressed in
103
- <br />
104
- <br />
105
- <p>&emsp;<img width="115" alt="Button Color" src="https://user-images.githubusercontent.com/6395465/139001982-17a326a7-1438-410a-ab01-9e084181db7a.png">&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<img width="115" alt="Button Color Pressed" src="https://user-images.githubusercontent.com/6395465/139001988-7f9de534-637e-41f2-ad42-d1aa07f2f1fe.png"></p>
106
- <p>&emsp;&emsp;Button Color&emsp;&emsp;&emsp;&emsp;&emsp;&ensp;Button Color Pressed</p>
107
- <br />
108
+
109
+ <img width="115" alt="ButtonColor" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/f4f4e2eb-3f23-43f2-9370-ab29ddf24c89"> | <img width="115" alt="ButtonColorPressed" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/461722b4-a1f1-4447-8ef6-195e0787967e">
110
+ :------------------:|:------------------:
111
+ ButtonColor | ButtonColorPressed
108
112
 
109
113
  ```
110
114
  buttonColorPressed='#693C72'
@@ -133,11 +137,10 @@ buttonColorPressed='#693C72'
133
137
  #### buttonSize
134
138
  > type: Object({Number}) - Default: 65
135
139
  ###### The size of the button
136
- <br />
137
- <br />
138
- <p>&emsp;&ensp;<img width="105" alt="Button Size 75" src="https://user-images.githubusercontent.com/6395465/139000330-ce9189d8-2023-413a-aa13-5c6f22f363c0.png">&emsp;&emsp;&emsp;&emsp;&emsp;<img width="125" alt="Button Size 55" src="https://user-images.githubusercontent.com/6395465/139000318-120dcbf4-e794-4747-9570-ee763b9e3547.png"></p>
139
- <p>&emsp;&ensp;Button Size 75&emsp;&emsp;&emsp;&emsp;&emsp;&ensp;Button Size 55</p>
140
- <br />
140
+
141
+ <img width="105" alt="Size75" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/a6cd92cd-4e84-4eca-9c66-16b001b08555"> | <img width="125" alt="Size55" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/f3e8a40b-6181-46dd-89ba-4eb49aa080e3">
142
+ :--------------:|:--------------:
143
+ Button Size 75 | Button Size 55
141
144
 
142
145
  ```
143
146
  buttonSize={75}
@@ -167,11 +170,11 @@ buttonSize={75}
167
170
  #### iconSize
168
171
  > type: Object({Number}) - Default: 40
169
172
  ###### The size of the icon inside the button.
170
- ###### This only changes the size of the icon inside the button, not the size of the button itself<br />
171
- <br />
172
- <p>&emsp;<img width="105" alt="Icon Size 50" src="https://user-images.githubusercontent.com/6395465/138997150-99aa6f00-a7af-46c9-9b68-484332bb9cd1.png">&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&ensp;<img width="105" alt="Icon Size 35" src="https://user-images.githubusercontent.com/6395465/138997158-f36dfa88-d5d8-48b0-b8e6-c81f654e0354.png"></p>
173
- <p>&emsp;&ensp;Icon Size 50&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&ensp;Icon Size 35</p>
174
- <br />
173
+ ###### This only changes the size of the icon inside the button, not the size of the button itself
174
+
175
+ <img width="105" alt="Icon50" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/ab76f0b2-039d-4cb6-89a1-cb4b4be367c3"> | <img width="105" alt="Icon35" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/63220fcd-b598-4ab1-94f2-5b46f6184d67">
176
+ :------------:|:------------:
177
+ Icon Size 50 | Icon Size 35
175
178
 
176
179
  ```
177
180
  iconSize={35}
@@ -232,11 +235,10 @@ iconColor='#edf6f9'
232
235
  #### iconColorPressed
233
236
  > type: String - Default: #e2eafc
234
237
  ###### The color of the icon color when the button is pressed
235
- <br />
236
- <br />
237
- <p>&emsp;&emsp;&emsp;&ensp;<img width="42" alt="Icon Color" src="https://user-images.githubusercontent.com/6395465/138996043-ace2d03e-7424-4e72-b57f-ec28768f8ab9.png">&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&ensp;<img width="42" alt="Icon Color Pressed" src="https://user-images.githubusercontent.com/6395465/138996049-3d820c1a-6eaf-4492-aff0-24c10125bfc8.png"></p>
238
- <p>&emsp;&emsp;&ensp;Icon Color&emsp;&emsp;&emsp;&emsp;&ensp;Icon Color Pressed</p>
239
- <br />
238
+
239
+ <img width="42" alt="IconColor" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/88de584d-85cd-4731-8630-6418a492d7ba"> | <img width="42" alt="IconColorPressed" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/62c7c0ed-e8d0-4c98-9abe-6a04f07539e6">
240
+ :------------------:|:------------------:
241
+ Icon color | Icon Color Pressed
240
242
 
241
243
  ```
242
244
  iconColorPressed='#c9ccd5'
@@ -269,11 +271,10 @@ iconColorPressed='#c9ccd5'
269
271
  #### shaded
270
272
  > type: Object({Boolean}) - Default: false
271
273
  ###### The shadow underneath the button when not pressed in. Works best in Light Mode
272
- <br />
273
- <br />
274
- <p><img width="110" alt="Shaded" src="https://user-images.githubusercontent.com/6395465/138994543-6ca5a2d5-b6c2-495b-8f1a-cddf4c99ee81.png">&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<img width="110" alt="Not Shaded" src="https://user-images.githubusercontent.com/6395465/138994576-907d004b-04e4-4d94-a8d1-614e02dce40d.png"></p>
275
- <p>&emsp;&ensp;Shaded&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&ensp;Not Shaded</p>
276
- <br />
274
+
275
+ <img width="110" alt="Shaded" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/f3800c2b-8304-49e7-83e0-5a3d4584a8f0"> | <img width="110" alt="NotShaded" src="https://github.com/cartagenae/react-native-touchable-action/assets/6395465/e2f2b19d-d34a-48d7-ba14-c0078899ac38">
276
+ :----------:|:----------:
277
+ Shaded | Not Shaded
277
278
 
278
279
  ```
279
280
  shaded={true}
@@ -304,4 +305,4 @@ shaded={true}
304
305
 
305
306
  ## License
306
307
 
307
- react-native-touchable-action is under the **MIT License**. See bundled <a href='https://github.com/cartagenae/react-native-floating-action-button/blob/main/LICENSE' alt='license file'>**LICENSE**</a> file for details.
308
+ React Native Floating Action Button is under the **MIT License**. See bundled <a href='https://github.com/cartagenae/react-native-touchable-action/blob/main/LICENSE' alt='license file'>**LICENSE**</a> file for details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-touchable-action",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A simple floating action button component for any React Native project using Expo",
5
5
  "main": "FloatingActionButton.js",
6
6
  "author": "Eric Cartagena",