Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .git-blame-ignore-revs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHA of squashed commit can be added here after merging.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# add clang-format commit SHA after merging
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
* This code was generated by
* [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
* Do not edit this file as changes may cause incorrect behavior and will be
* lost once the code is regenerated.
*
* @generated by codegen project: GenerateModuleJniH.js
*/
Expand All @@ -16,9 +17,9 @@

namespace facebook::react {



JSI_EXPORT
std::shared_ptr<TurboModule> ReactPopupMenuAndroidSpecs_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
std::shared_ptr<TurboModule> ReactPopupMenuAndroidSpecs_ModuleProvider(
const std::string& moduleName,
const JavaTurboModule::InitParams& params);

} // namespace facebook::react
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@

/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
* This code was generated by
* [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
* Do not edit this file as changes may cause incorrect behavior and will be
* lost once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/

#pragma once

#include "ShadowNodes.h"
#include <react/renderer/core/ConcreteComponentDescriptor.h>
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
#include <react/renderer/core/ConcreteComponentDescriptor.h>
#include "ShadowNodes.h"

namespace facebook::react {

using AndroidPopupMenuComponentDescriptor = ConcreteComponentDescriptor<AndroidPopupMenuShadowNode>;
using AndroidPopupMenuComponentDescriptor =
ConcreteComponentDescriptor<AndroidPopupMenuShadowNode>;

void rncore_registerComponentDescriptorsFromCodegen(
std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);

} // namespace facebook::react
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@

/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
* This code was generated by
* [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
* Do not edit this file as changes may cause incorrect behavior and will be
* lost once the code is regenerated.
*
* @generated by codegen project: GenerateEventEmitterH.js
*/
#pragma once

#include <react/renderer/components/view/ViewEventEmitter.h>


namespace facebook::react {
class AndroidPopupMenuEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;

struct OnPopupMenuSelectionChange {
int item;
};
int item;
};

struct OnPopupMenuDismiss {

};
struct OnPopupMenuDismiss {};
void onPopupMenuSelectionChange(OnPopupMenuSelectionChange value) const;

void onPopupMenuDismiss(OnPopupMenuDismiss value) const;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
* This code was generated by
* [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
* Do not edit this file as changes may cause incorrect behavior and will be
* lost once the code is regenerated.
*
* @generated by codegen project: GeneratePropsH.js
*/
Expand All @@ -18,7 +19,10 @@ namespace facebook::react {
class AndroidPopupMenuProps final : public ViewProps {
public:
AndroidPopupMenuProps() = default;
AndroidPopupMenuProps(const PropsParserContext& context, const AndroidPopupMenuProps &sourceProps, const RawProps &rawProps);
AndroidPopupMenuProps(
const PropsParserContext& context,
const AndroidPopupMenuProps& sourceProps,
const RawProps& rawProps);

#pragma mark - Props

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@

/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
* This code was generated by
* [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
* Do not edit this file as changes may cause incorrect behavior and will be
* lost once the code is regenerated.
*
* @generated by codegen project: GenerateShadowNodeH.js
*/

#pragma once

#include <jsi/jsi.h>
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
#include "EventEmitters.h"
#include "Props.h"
#include "States.h"
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
#include <jsi/jsi.h>

namespace facebook::react {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
* This code was generated by
* [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
* Do not edit this file as changes may cause incorrect behavior and will be
* lost once the code is regenerated.
*
* @generated by codegen project: GenerateStateH.js
*/
Expand All @@ -17,11 +18,13 @@
namespace facebook::react {

class AndroidPopupMenuState {
public:
public:
AndroidPopupMenuState() = default;

#ifdef RN_SERIALIZABLE_STATE
AndroidPopupMenuState(AndroidPopupMenuState const &previousState, folly::dynamic data){};
AndroidPopupMenuState(
const AndroidPopupMenuState& previousState,
folly::dynamic data){};
folly::dynamic getDynamic() const {
return {};
};
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Blob/RCTBlobPlugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern "C" {
#endif

// RCTTurboModuleManagerDelegate should call this to resolve module classes.
Class RCTBlobClassProvider(const char *name);
Class RCTBlobClassProvider(const char* name);

// Lookup functions
Class RCTBlobManagerCls(void) __attribute__((used));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,81 +26,68 @@ class LazyIterator {
public:
LazyIterator() = default;

LazyIterator(U vector, convert_type convert, size_type i) : _v(vector), _i(i), _convert(std::move(convert)) {}
LazyIterator(U vector, convert_type convert, size_type i)
: _v(vector), _i(i), _convert(std::move(convert)) {}

bool operator==(const LazyIterator &other) const
{
bool operator==(const LazyIterator& other) const {
return _i == other._i && _v == other._v;
}

bool operator<(const LazyIterator &b) const
{
bool operator<(const LazyIterator& b) const {
return _i < b._i;
}

value_type operator*() const
{
value_type operator*() const {
return _convert(_v[_i]);
}

std::unique_ptr<value_type> operator->() const
{
std::unique_ptr<value_type> operator->() const {
return std::make_unique<value_type>(*this);
}

LazyIterator operator+(difference_type n) const
{
LazyIterator operator+(difference_type n) const {
return LazyIterator(_v, _convert, _i + n);
}

LazyIterator &operator+=(difference_type n)
{
LazyIterator& operator+=(difference_type n) {
_i += n;
return *this;
}

LazyIterator &operator-=(difference_type n)
{
LazyIterator& operator-=(difference_type n) {
_i -= n;
return *this;
}

LazyIterator operator-(difference_type n) const
{
LazyIterator operator-(difference_type n) const {
return LazyIterator(_v, _i - n);
}

difference_type operator-(const LazyIterator &a) const
{
difference_type operator-(const LazyIterator& a) const {
return _i - a._i;
}

LazyIterator &operator++()
{
LazyIterator& operator++() {
return *this += 1;
}

LazyIterator operator++(int)
{
LazyIterator operator++(int) {
auto tmp = *this;
++*this;
return tmp;
}

LazyIterator &operator--()
{
LazyIterator& operator--() {
return *this -= 1;
}

LazyIterator operator--(int)
{
LazyIterator operator--(int) {
auto tmp = *this;
--*this;
return tmp;
}

value_type operator[](difference_type n) const
{
value_type operator[](difference_type n) const {
return _convert(_v[_i + n]);
}

Expand All @@ -111,26 +98,24 @@ class LazyIterator {
};

template <typename T, typename U>
LazyIterator<T, U> operator+(typename LazyIterator<T, U>::difference_type n, const LazyIterator<T, U> &i)
{
LazyIterator<T, U> operator+(
typename LazyIterator<T, U>::difference_type n,
const LazyIterator<T, U>& i) {
return i + n;
}

template <typename T, typename U>
bool operator<=(const LazyIterator<T, U> &a, const LazyIterator<T, U> &b)
{
bool operator<=(const LazyIterator<T, U>& a, const LazyIterator<T, U>& b) {
return a < b || a == b;
}

template <typename T, typename U>
bool operator>(const LazyIterator<T, U> &a, const LazyIterator<T, U> &b)
{
bool operator>(const LazyIterator<T, U>& a, const LazyIterator<T, U>& b) {
return b < a;
}

template <typename T, typename U>
bool operator>=(const LazyIterator<T, U> &a, const LazyIterator<T, U> &b)
{
bool operator>=(const LazyIterator<T, U>& a, const LazyIterator<T, U>& b) {
return a > b || a == b;
}

Expand Down
Loading
Loading