react-native-touchable-action 1.0.9 → 1.0.11

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.
@@ -295,4 +295,4 @@ const styles = StyleSheet.create({
295
295
  }
296
296
  })
297
297
 
298
- export default FloatingActionButton;
298
+ export default FloatingActionButton;
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright © 2025 Eric Cartagena
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
package/README.md CHANGED
@@ -11,11 +11,11 @@ iOS | Android
11
11
 
12
12
  ## Installation
13
13
 
14
- ```
14
+ ```js
15
15
  npm install --save react-native-touchable-action
16
16
  ```
17
17
  or
18
- ```
18
+ ```js
19
19
  yarn add react-native-touchable-action
20
20
  ```
21
21
 
@@ -32,10 +32,10 @@ yarn add react-native-touchable-action
32
32
  #### Basic Usage
33
33
 
34
34
  > To position your floating action, use the React Native style prop
35
- ```
35
+ ```js
36
36
  import FloatingActionButton from 'react-native-touchable-action';
37
37
  ```
38
- ```
38
+ ```js
39
39
  <FloatingActionButton
40
40
  IconSource='Ionicons'
41
41
  iconName='rocket'
@@ -54,7 +54,7 @@ import FloatingActionButton from 'react-native-touchable-action';
54
54
  #### IconSource (required)
55
55
  > type: String
56
56
  ###### The source of the icon
57
- ```
57
+ ```js
58
58
  IconSource='Ionicons'
59
59
  ```
60
60
  ##
@@ -62,7 +62,7 @@ IconSource='Ionicons'
62
62
  #### iconName (required)
63
63
  > type: String
64
64
  ###### The name of the icon
65
- ```
65
+ ```js
66
66
  iconName='rocket'
67
67
  ```
68
68
  ##
@@ -70,7 +70,7 @@ iconName='rocket'
70
70
  #### onPress
71
71
  > type: Object({Function})
72
72
  ###### The action when the user presses the button
73
- ```
73
+ ```js
74
74
  onPress={() => {
75
75
  console.log('You pressed the rocket button');
76
76
  }
@@ -80,11 +80,11 @@ onPress={() => {
80
80
  #### buttonColor
81
81
  > type: String - Default: #480ca8
82
82
  ###### The color of the button
83
- ```
83
+ ```js
84
84
  buttonColor='#0F044C'
85
85
  ```
86
86
  ##### Example:
87
- ```
87
+ ```js
88
88
  <FloatingActionButton
89
89
  IconSource='Ionicons'
90
90
  iconName='rocket'
@@ -110,12 +110,12 @@ buttonColor='#0F044C'
110
110
  :------------------:|:------------------:
111
111
  ButtonColor | ButtonColorPressed
112
112
 
113
- ```
113
+ ```js
114
114
  buttonColorPressed='#693C72'
115
115
  ```
116
116
 
117
117
  ##### Example:
118
- ```
118
+ ```js
119
119
  <FloatingActionButton
120
120
  IconSource='Ionicons'
121
121
  iconName='rocket'
@@ -142,12 +142,12 @@ buttonColorPressed='#693C72'
142
142
  :--------------:|:--------------:
143
143
  Button Size 75 | Button Size 55
144
144
 
145
- ```
145
+ ```js
146
146
  buttonSize={75}
147
147
  ```
148
148
 
149
149
  ##### Example
150
- ```
150
+ ```js
151
151
  <FloatingActionButton
152
152
  IconSource='Ionicons'
153
153
  iconName='rocket'
@@ -176,12 +176,12 @@ buttonSize={75}
176
176
  :------------:|:------------:
177
177
  Icon Size 50 | Icon Size 35
178
178
 
179
- ```
179
+ ```js
180
180
  iconSize={35}
181
181
  ```
182
182
 
183
183
  ##### Example
184
- ```
184
+ ```js
185
185
  <FloatingActionButton
186
186
  IconSource='Ionicons'
187
187
  iconName='rocket'
@@ -205,12 +205,12 @@ iconSize={35}
205
205
  #### iconColor
206
206
  > type: String - Default: #edf6f9
207
207
  ###### The color of the icon inside the button
208
- ```
208
+ ```js
209
209
  iconColor='#edf6f9'
210
210
  ```
211
211
 
212
212
  ##### Example
213
- ```
213
+ ```js
214
214
  <FloatingActionButton
215
215
  IconSource='Ionicons'
216
216
  iconName='rocket'
@@ -240,12 +240,12 @@ iconColor='#edf6f9'
240
240
  :------------------:|:------------------:
241
241
  Icon color | Icon Color Pressed
242
242
 
243
- ```
243
+ ```js
244
244
  iconColorPressed='#c9ccd5'
245
245
  ```
246
246
 
247
247
  ##### Example
248
- ```
248
+ ```js
249
249
  <FloatingActionButton
250
250
  IconSource='Ionicons'
251
251
  iconName='rocket'
@@ -276,12 +276,12 @@ iconColorPressed='#c9ccd5'
276
276
  :----------:|:----------:
277
277
  Shaded | Not Shaded
278
278
 
279
- ```
279
+ ```js
280
280
  shaded={true}
281
281
  ```
282
282
 
283
283
  ##### Example
284
- ```
284
+ ```js
285
285
  <FloatingActionButton
286
286
  IconSource='Ionicons'
287
287
  iconName='rocket'
@@ -305,4 +305,4 @@ shaded={true}
305
305
 
306
306
  ## License
307
307
 
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.
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,13 +1,13 @@
1
1
  {
2
2
  "name": "react-native-touchable-action",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
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",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@expo/vector-icons": "^13.0.0",
10
- "react": "^18.2.0",
11
- "react-native": "^0.72.4"
9
+ "@expo/vector-icons": "^14.1.0",
10
+ "react": "^19.0.0",
11
+ "react-native": "^0.79.5"
12
12
  }
13
13
  }