(uri: ?string)
| 49 | } |
| 50 | |
| 51 | function URIActionMap(uri: ?string): ?UIExplorerAction { |
| 52 | if (!uri) { |
| 53 | return null; |
| 54 | } |
| 55 | // Warning! Hacky parsing for example code. Use a library for this! |
| 56 | const parts = uri.split('rnuiexplorer:/'); |
| 57 | if (!parts[1]) { |
| 58 | return null; |
| 59 | } |
| 60 | const path = parts[1]; |
| 61 | return PathActionMap(path); |
| 62 | } |
| 63 | |
| 64 | module.exports = URIActionMap; |
no test coverage detected
searching dependent graphs…